Use jinja2 for building nginx config

This commit is contained in:
kaiyou
2017-09-24 13:09:12 +02:00
parent 87cbeacecd
commit 1854349ecc
3 changed files with 75 additions and 0 deletions

9
nginx/Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM alpine:edge
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk add --no-cache nginx nginx-mod-mail py-setuptools jinja2-cli@testing
COPY conf /conf
COPY start.sh /start.sh
CMD /start.sh