harness-drone/Dockerfile

25 lines
735 B
Text
Raw Normal View History

2015-09-29 18:21:17 -07:00
# Build the drone executable on a x64 Linux host:
#
2016-04-22 17:35:32 -07:00
# go build --ldflags '-extldflags "-static"' -o drone
2015-09-29 18:21:17 -07:00
#
# Build the docker image:
#
# docker build --rm=true -t drone/drone .
2015-09-29 18:21:17 -07:00
FROM centurylink/ca-certs
2015-09-30 22:16:42 -07:00
EXPOSE 8000
ADD contrib/docker/etc/nsswitch.conf /etc/
2015-05-18 10:05:58 -07:00
ENV DATABASE_DRIVER=sqlite3
ENV DATABASE_CONFIG=/var/lib/drone/drone.sqlite
2016-04-19 18:37:53 -07:00
ADD drone/drone /drone
2016-04-12 17:27:24 -07:00
# Alpine Linux doesn't use pam, which means that there is no /etc/nsswitch.conf,
# but Go and CGO rely on /etc/nsswitch.conf to check the order of DNS resolving.
# To fix this we just create /etc/nsswitch.conf and add the following line:
#RUN echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf
2016-04-19 18:37:53 -07:00
ENTRYPOINT ["/drone"]
2016-05-02 12:21:25 -07:00
CMD ["daemon"]