Use multi-stage build to reduce download

This commit is contained in:
criyle 2020-03-04 23:15:40 -05:00
parent 0234395b50
commit eb5dfec701
2 changed files with 9 additions and 1 deletions

View File

@ -10,4 +10,12 @@ COPY ./ /go/judge
RUN go build -o executorserver ./cmd/executorserver
FROM debian:latest
WORKDIR /opt
COPY --from=build /go/judge/executorserver /opt/
EXPOSE 5050/tcp
ENTRYPOINT ["./executorserver"]

View File

@ -125,7 +125,7 @@ interface Result {
Example Request & Response:
Single:
Single (Require `apt install g++` inside the container):
```json
{