drone-test/Dockerfile
Eg 78719a6bb1
Some checks reported errors
continuous-integration/drone/push Build was killed
commit ci file
2022-06-15 10:58:05 +08:00

10 lines
282 B
Docker

FROM golang:1.18 as builder
WORKDIR /build
COPY . .
RUN CGO_ENABLED=0 GOPROXY=https://proxy.golang.com.cn,direct go build -o demo
FROM alpine:3.10 as runner
LABEL description="the image is a demo"
WORKDIR /app
COPY --from=builder /build/demo /app/
EXPOSE 8080
ENTRYPOINT ["./demo"]