mirror of https://github.com/harness/drone.git
20 lines
595 B
Docker
20 lines
595 B
Docker
FROM alpine:3.19 as alpine
|
|
RUN apk add -U --no-cache ca-certificates tzdata
|
|
|
|
FROM alpine:3.19
|
|
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 if [[ ! -e /etc/nsswitch.conf ]] ; then echo 'hosts: files dns' > /etc/nsswitch.conf ; fi
|
|
|
|
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo
|
|
|
|
LABEL com.centurylinklabs.watchtower.stop-signal="SIGINT"
|
|
|
|
ENTRYPOINT ["/bin/drone-agent"]
|