drone-kubernetes/Dockerfile

20 lines
226 B
Docker
Raw Normal View History

2023-11-02 17:24:36 +08:00
FROM golang as build
WORKDIR /app
COPY . .
ENV GO111MODULE=on
ENV GOPROXY=https://goproxy.cn,direct
RUN go mod download
RUN go build -o app
FROM alpine
WORKDIR /app
2023-11-03 08:51:24 +08:00
COPY --from=build /app/app .
ENTRYPOINT ["/app/app"]