11 lines
280 B
Plaintext
11 lines
280 B
Plaintext
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;'" |