d4281f293b
Per discussion here: https://discourse.drone.io/t/alpine-3-9-includes-musl-version-vulnerable-to-cve-2019-14697/6679
26 lines
No EOL
742 B
Text
26 lines
No EOL
742 B
Text
# docker build --rm -f docker/Dockerfile -t drone/drone .
|
|
|
|
FROM alpine:3.11 as alpine
|
|
RUN apk add -U --no-cache ca-certificates
|
|
|
|
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=arm64
|
|
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/
|
|
|
|
ADD release/linux/arm64/drone-server /bin/
|
|
ENTRYPOINT ["/bin/drone-server"] |