rts-sim-testing-service/Dockerfile

10 lines
430 B
Docker
Raw Permalink Normal View History

2023-10-13 10:01:39 +08:00
FROM golang:1.21-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
2024-02-22 09:42:18 +08:00
FROM alpine
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-18 10:33:59 +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" ]