d4281f293b
Per discussion here: https://discourse.drone.io/t/alpine-3-9-includes-musl-version-vulnerable-to-cve-2019-14697/6679
18 lines
515 B
Text
18 lines
515 B
Text
FROM alpine:3.11 as alpine
|
|
RUN apk add -U --no-cache ca-certificates
|
|
|
|
FROM alpine:3.11
|
|
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-agent /bin/
|
|
|
|
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
|
|
|
|
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
|
|
LABEL com.centurylinklabs.watchtower.stop-signal="SIGINT"
|
|
|
|
ENTRYPOINT ["/bin/drone-agent"]
|