rts-sim-testing-service/Dockerfile

10 lines
428 B
Docker
Raw Normal View History

2023-08-08 09:34:18 +08:00
FROM golang:1.20-alpine as builder
2023-08-07 16:41:16 +08:00
WORKDIR /go/src/joylink.club/bj-rtsts-server
2023-08-07 17:05:28 +08:00
COPY . ./
2023-08-07 16:51:20 +08:00
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go build -o bj-rtsts-server
2023-07-26 11:24:11 +08:00
2023-08-07 16:41:16 +08:00
FROM scratch
2023-08-08 09:34:18 +08:00
COPY --from=builder /go/src/joylink.club/bj-rtsts-server/bj-rtsts-server /usr/local/bin/bj-rtsts-server
2023-08-07 18:27:54 +08:00
WORKDIR /bj-rtsts
2023-08-08 09:34:18 +08:00
COPY --from=builder /go/src/joylink.club/bj-rtsts-server/config.yml .
2023-07-26 11:24:11 +08:00
CMD [ "bj-rtsts-server" ]