wireguard-dashboard/Dockerfile
coward 9611b35950
All checks were successful
continuous-integration/drone/tag Build is passing
🐳
2024-05-08 14:59:40 +08:00

26 lines
392 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
WORKDIR /app
WORKDIR db
COPY --from=build /build/app /app
COPY --from=build /build/template/* /app/template/
RUN ls -al /app/ | grep 'app'
ENTRYPOINT ["/app/app"]