调整Dockerfile
This commit is contained in:
parent
e0ed33e0c8
commit
c41b23629d
11
Dockerfile
11
Dockerfile
@ -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" ]
|
Loading…
Reference in New Issue
Block a user