2021-06-24 18:07:48 +00:00
|
|
|
FROM drone/drone:2.0.1 as drone
|
2020-06-05 20:25:57 +00:00
|
|
|
|
2021-02-12 17:52:12 +00:00
|
|
|
FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
|
2020-06-05 20:25:57 +00:00
|
|
|
|
|
|
|
EXPOSE 8000
|
|
|
|
|
|
|
|
# add supervisor configs
|
|
|
|
RUN sed -e 's,^logfile=.*$,logfile=/run/supervisord.log,' -i /etc/supervisor/supervisord.conf
|
|
|
|
COPY supervisor-drone-server.conf /etc/supervisor/conf.d/
|
|
|
|
|
|
|
|
ENV \
|
|
|
|
XDG_CACHE_HOME=/app/data \
|
|
|
|
DRONE_SERVER_PROTO=https \
|
|
|
|
DRONE_DATABASE_DRIVER=postgres \
|
|
|
|
DRONE_RUNNER_OS=linux \
|
|
|
|
DRONE_RUNNER_ARCH=amd64 \
|
|
|
|
DRONE_SERVER_PORT=:8000 \
|
|
|
|
DRONE_DATADOG_ENABLED=false
|
|
|
|
|
|
|
|
COPY --from=drone /bin/drone-server /bin
|
|
|
|
|
|
|
|
COPY start.sh /app/pkg/
|
|
|
|
|
|
|
|
WORKDIR /app/data
|
|
|
|
|
2020-07-21 05:44:18 +00:00
|
|
|
CMD [ "/app/pkg/start.sh" ]
|