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

26 lines
742 B
Text
Raw Permalink Normal View History

2019-02-19 23:56:41 +00:00
# docker build --rm -f docker/Dockerfile -t drone/drone .
FROM alpine:3.11 as alpine
2019-02-19 23:56:41 +00:00
RUN apk add -U --no-cache ca-certificates
FROM alpine:3.11
2019-02-19 23:56:41 +00:00
EXPOSE 80 443
VOLUME /data
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
ENV GODEBUG netdns=go
ENV XDG_CACHE_HOME /data
ENV DRONE_DATABASE_DRIVER sqlite3
ENV DRONE_DATABASE_DATASOURCE /data/database.sqlite
ENV DRONE_RUNNER_OS=linux
ENV DRONE_RUNNER_ARCH=amd64
ENV DRONE_SERVER_PORT=:80
ENV DRONE_SERVER_HOST=localhost
2019-03-05 23:16:58 +00:00
ENV DRONE_DATADOG_ENABLED=true
ENV DRONE_DATADOG_ENDPOINT=https://stats.drone.ci/api/v1/series
2019-02-19 23:56:41 +00:00
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
ADD release/linux/amd64/drone-server /bin/
ENTRYPOINT ["/bin/drone-server"]