wireguard-dashboard/Dockerfile
coward 282c4886b3
All checks were successful
continuous-integration/drone/tag Build is passing
🐳dockerfile更新
2024-05-08 14:44:10 +08:00

23 lines
363 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 /build/template/* /template/
RUN ls -al /bin/ | grep 'app'
ENTRYPOINT ["/bin/app"]