rts-sim-testing-service/Dockerfile

11 lines
305 B
Docker
Raw Normal View History

2023-08-07 16:41:16 +08:00
FROM golang:1.20.7 as builder
WORKDIR /go/src/joylink.club/bj-rtsts-server
2023-08-07 17:05:28 +08:00
COPY . ./
2023-08-07 16:59:38 +08:00
RUN pwd && ls -l
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-07-26 11:24:11 +08:00
WORKDIR /bj-rtsts
2023-08-07 16:49:06 +08:00
COPY --from=builder bj-rtsts-server .
2023-07-26 11:24:11 +08:00
CMD [ "bj-rtsts-server" ]