This commit is contained in:
13
gateway/Dockerfile-docker
Normal file
13
gateway/Dockerfile-docker
Normal file
@@ -0,0 +1,13 @@
|
||||
ARG IMAGENAME
|
||||
|
||||
FROM ${IMAGENAME}
|
||||
|
||||
ENV DOMAIN_NAME=default
|
||||
|
||||
EXPOSE 80 443
|
||||
|
||||
COPY ./ssl.conf.template /etc/nginx/conf.d/ssl.conf.template
|
||||
|
||||
VOLUME ["/etc/nginx/conf.d/cert/"]
|
||||
|
||||
CMD /bin/sh -c "envsubst '\$DOMAIN_NAME' < /etc/nginx/conf.d/ssl.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
|
Reference in New Issue
Block a user