wireguard-dashboard/Dockerfile
coward e1902ad176
Some checks reported errors
continuous-integration/drone/tag Build was killed
👷添加ci
2024-05-08 14:21:49 +08:00

21 lines
326 B
Docker

FROM golang:alpine as build
WORKDIR /build
COPY . .
ENV GO111MODULE=on
ENV GOPROXY=https://goproxy.cn,direct
RUN go mod download && go build -o 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"]