wireguard-dashboard/Dockerfile
coward 9670ec8270
Some checks failed
continuous-integration/drone/tag Build is failing
🐳dockerfile更新
2024-05-08 14:33:40 +08:00

23 lines
357 B
Docker

FROM golang:alpine as build
RUN apk add upx
WORKDIR /build
COPY . .
ENV GO111MODULE=on
ENV GOPROXY=https://goproxy.cn,direct
RUN go mod download && go build -o app && upx -9 app
RUN ls -lh && chmod +x ./app
FROM alpine
COPY --from=build /build/app /bin
COPY --from=build /template/* /template/
RUN ls -al /bin/ | grep 'app'
ENTRYPOINT ["/bin/app"]