Hexo-Async-Offends/gateway/Dockerfile-kubernetes

11 lines
280 B
Plaintext
Raw Normal View History

2024-07-19 09:02:48 +00:00
ARG IMAGENAME
FROM ${IMAGENAME}
ENV DOMAIN_NAME=default
COPY ./default.conf.template /etc/nginx/conf.d/default.conf.template
EXPOSE 80
CMD /bin/sh -c "envsubst '\$localhost' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"