aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 0316d5d..8a17307 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,6 +2,9 @@ FROM alpine
WORKDIR /root
COPY Caddyfile .
COPY supervisord.conf .
-COPY cgitrc /etc/
-RUN apk add --no-cache cgit git caddy fcgiwrap supervisor py3-markdown py3-pygments
-ENTRYPOINT supervisord -c supervisord.conf
+COPY entrypoint.sh .
+COPY cgitrc.template /etc/
+RUN apk add --no-cache cgit git caddy fcgiwrap supervisor py3-markdown py3-pygments envsubst; \
+ envsubst < /etc/cgitrc.template > /etc/cgitrc
+CMD ["supervisord", "-c", "supervisord.conf"]
+ENTRYPOINT ["./entrypoint.sh"]