Files
plugin-drone-dingtalk/Dockerfile
T
2019-09-20 10:20:35 +08:00

12 lines
331 B
Docker

FROM golang AS builder
WORKDIR /app
COPY . .
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -o drone-dingtalk .
FROM alpine:latest
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
COPY --from=builder /app/drone-dingtalk /bin
COPY --from=builder /app/tpls /app/tpls
ENTRYPOINT ["/bin/drone-dingtalk"]