Hexo-Async-Offends/gateway/Dockerfile-docker
offends 5db38f1a94
Some checks reported errors
continuous-integration/drone Build was killed
synchronization
2024-07-19 15:47:50 +08:00

16 lines
337 B
Plaintext

ARG IMAGENAME=nginx:alpine-slim
FROM ${IMAGENAME}
COPY ./ssl.conf.template /etc/nginx/conf.d/ssl.conf.template
VOLUME ["/etc/nginx/conf.d/cert/"]
EXPOSE 80
EXPOSE 443
ENV DOMAIN_NAME=default
CMD /bin/sh -c "envsubst '\$DOMAIN_NAME' < /etc/nginx/conf.d/ssl.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"