Hexo-Async-Offends/gateway/Dockerfile-docker

13 lines
310 B
Plaintext
Raw Normal View History

2024-07-19 09:09:37 +00:00
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;'"