修改Dockerfile构建

This commit is contained in:
walker 2023-08-07 18:27:54 +08:00
parent 7b0fb5f863
commit 437bd8146b

View File

@ -4,6 +4,6 @@ COPY . ./
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go build -o bj-rtsts-server RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go build -o bj-rtsts-server
FROM scratch FROM scratch
WORKDIR /bj-rtsts
COPY --from=builder /go/src/joylink.club/bj-rtsts-server/bj-rtsts-server /go/src/joylink.club/bj-rtsts-server/config.yml ./ COPY --from=builder /go/src/joylink.club/bj-rtsts-server/bj-rtsts-server /go/src/joylink.club/bj-rtsts-server/config.yml ./
WORKDIR /bj-rtsts
CMD [ "bj-rtsts-server" ] CMD [ "bj-rtsts-server" ]