10 lines
430 B
Docker
10 lines
430 B
Docker
FROM golang:1.21-alpine 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 alpine
|
|
COPY --from=builder /go/src/joylink.club/bj-rtsts-server/bj-rtsts-server /usr/local/bin/bj-rtsts-server
|
|
WORKDIR /bj-rtsts
|
|
COPY --from=builder /go/src/joylink.club/bj-rtsts-server/config/*.yml ./
|
|
CMD [ "bj-rtsts-server" ] |