Hexo-Async-Offends/gateway/Dockerfile-docker
offends 4cefd4b9d7
All checks were successful
continuous-integration/drone Build is passing
synchronization
2024-07-19 17:03:39 +08:00

13 lines
310 B
Plaintext

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;'"