2020-01-26 16:31:47 +11:00
|
|
|
FROM alpine:3.11 as alpine
|
2019-02-19 15:56:41 -08:00
|
|
|
RUN apk add -U --no-cache ca-certificates
|
|
|
|
|
2020-01-26 16:31:47 +11:00
|
|
|
FROM alpine:3.11
|
2019-02-19 15:56:41 -08:00
|
|
|
ENV GODEBUG netdns=go
|
|
|
|
ENV DRONE_RUNNER_OS=linux
|
|
|
|
ENV DRONE_RUNNER_ARCH=amd64
|
|
|
|
ENV DRONE_RUNNER_PLATFORM=linux/amd64
|
|
|
|
ENV DRONE_RUNNER_CAPACITY=1
|
|
|
|
ADD release/linux/amd64/drone-controller /bin/
|
|
|
|
|
|
|
|
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/drone-controller"]
|