This repository has been archived on 2020-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
drone.autonomic.zone/Dockerfile

27 lines
801 B
Docker
Raw Normal View History

2020-03-25 00:35:13 +00:00
# https://github.com/drone/drone/blob/f5fbd1542235041260becc627adbce5769503379/docker/Dockerfile.server.linux.amd64
2020-03-10 09:35:34 +00:00
2020-03-25 00:35:13 +00:00
FROM alpine:3.11 as alpine
RUN apk add -U --no-cache ca-certificates
FROM alpine:3.11
2020-03-25 00:21:53 +00:00
EXPOSE 8097
2020-03-25 00:35:13 +00:00
VOLUME /data
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf
2020-03-24 21:52:56 +00:00
2020-03-25 00:35:13 +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
2020-03-25 00:29:56 +00:00
ENV DRONE_SERVER_PORT=:8097
2020-03-25 00:35:13 +00:00
ENV DRONE_SERVER_HOST=localhost
ENV DRONE_DATADOG_ENABLED=true
ENV DRONE_DATADOG_ENDPOINT=https://stats.drone.ci/api/v1/series
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
2020-03-25 00:29:56 +00:00
2020-03-25 00:35:13 +00:00
ADD release/linux/amd64/drone-server /bin/
ENTRYPOINT ["/bin/drone-server"]