Revert "Fork the server docker file"
This reverts commit 55afd07a1d
.
This doesn't seem doable.
This commit is contained in:
parent
55afd07a1d
commit
e54fe8ebf4
23
Dockerfile
23
Dockerfile
@ -1,26 +1,7 @@
|
|||||||
# https://github.com/drone/drone/blob/f5fbd1542235041260becc627adbce5769503379/docker/Dockerfile.server.linux.amd64
|
FROM drone/drone:1
|
||||||
|
|
||||||
FROM alpine:3.11 as alpine
|
|
||||||
RUN apk add -U --no-cache ca-certificates
|
|
||||||
|
|
||||||
FROM alpine:3.11
|
|
||||||
EXPOSE 8097
|
EXPOSE 8097
|
||||||
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=:8097
|
ENV DRONE_SERVER_PORT=:8097
|
||||||
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 . ${WORKDIR}
|
||||||
|
|
||||||
ADD release/linux/amd64/drone-server /bin/
|
|
||||||
ENTRYPOINT ["/bin/drone-server"]
|
|
||||||
|
Reference in New Issue
Block a user