修改Dockerfile构建
This commit is contained in:
parent
7b0fb5f863
commit
437bd8146b
@ -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" ]
|
Loading…
Reference in New Issue
Block a user