Hexo-Async-Offends/gateway/Dockerfile-kubernetes
offends 5afeb14c47
All checks were successful
continuous-integration/drone Build is passing
synchronization
2024-07-19 16:25:42 +08:00

11 lines
296 B
Plaintext

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