harness-drone/docker/Dockerfile.agent.linux.amd64

19 lines
513 B
Text
Raw Normal View History

FROM alpine:3.9 as alpine
2019-02-19 23:56:41 +00:00
RUN apk add -U --no-cache ca-certificates
FROM alpine:3.9
2019-02-19 23:56:41 +00: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-agent /bin/
2019-10-01 16:54:45 +00:00
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
2019-02-19 23:56:41 +00:00
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
LABEL com.centurylinklabs.watchtower.stop-signal="SIGINT"
2019-02-19 23:56:41 +00:00
ENTRYPOINT ["/bin/drone-agent"]