Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
drone/docker/Dockerfile.server.linux.amd64
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
27 lines (21 sloc)
808 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # docker build --rm -f docker/Dockerfile -t drone/drone . | |
| FROM alpine:3.11 as alpine | |
| RUN apk add -U --no-cache ca-certificates tzdata | |
| FROM alpine:3.11 | |
| 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 | |
| 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 | |
| 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/ | |
| COPY --from=alpine /usr/share/zoneinfo /usr/share/zoneinfo | |
| ADD release/linux/amd64/drone-server /bin/ | |
| ENTRYPOINT ["/bin/drone-server"] |