add nsswitch to docker images
This commit is contained in:
parent
2e876a4a00
commit
5f66d74cc5
4 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,8 @@ 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"
|
||||
|
|
|
@ -7,6 +7,8 @@ FROM alpine:3.9
|
|||
EXPOSE 80 443
|
||||
VOLUME /data
|
||||
|
||||
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
|
||||
|
||||
ENV GODEBUG netdns=go
|
||||
ENV XDG_CACHE_HOME /data
|
||||
ENV DRONE_DATABASE_DRIVER sqlite3
|
||||
|
|
|
@ -7,6 +7,8 @@ FROM alpine:3.9
|
|||
EXPOSE 80 443
|
||||
VOLUME /data
|
||||
|
||||
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
|
||||
|
||||
ENV GODEBUG netdns=go
|
||||
ENV XDG_CACHE_HOME /data
|
||||
ENV DRONE_DATABASE_DRIVER sqlite3
|
||||
|
|
|
@ -7,6 +7,8 @@ FROM alpine:3.9
|
|||
EXPOSE 80 443
|
||||
VOLUME /data
|
||||
|
||||
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
|
||||
|
||||
ENV GODEBUG netdns=go
|
||||
ENV XDG_CACHE_HOME /data
|
||||
ENV DRONE_DATABASE_DRIVER sqlite3
|
||||
|
|
Loading…
Reference in a new issue