drone-kubernetes/Dockerfile
谢作欢 8fc07f2cd2
All checks were successful
continuous-integration/drone/tag Build is passing
🐳
2023-11-03 11:23:48 +08:00

20 lines
266 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
RUN ls -lh
ENTRYPOINT ["/bin/app"]