调整Dockerfile

This commit is contained in:
walker 2023-08-07 16:41:16 +08:00
parent e0ed33e0c8
commit c41b23629d

View File

@ -1,7 +1,10 @@
FROM golang:1.20.7 as builder
WORKDIR /go/src/joylink.club/bj-rtsts-server
COPY ./* .
RUN go build -o bj-rtsts-server
FROM scratch
COPY bj-rtsts-server /usr/local/bin/bj-rtsts-server
COPY --from=builder bj-rtsts-server .
WORKDIR /bj-rtsts
CMD [ "bj-rtsts-server" ]