mirror of
https://github.com/criyle/go-judge.git
synced 2025-11-04 14:50:02 +08:00
Use multi-stage build to reduce download
This commit is contained in:
parent
0234395b50
commit
eb5dfec701
@ -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"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user