rts-sim-testing-service/Dockerfile
2023-08-07 18:27:54 +08:00

9 lines
373 B
Docker

FROM golang:1.20.7 as builder
WORKDIR /go/src/joylink.club/bj-rtsts-server
COPY . ./
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go build -o bj-rtsts-server
FROM scratch
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" ]