Skip to content

Commit

Permalink
fix vars
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloose committed Sep 16, 2024
1 parent 54d802d commit fc63894
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/prod/nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ FROM nginx:1.27.1-alpine

ARG DOMAIN_NAME
ENV DOMAIN_NAME=${DOMAIN_NAME:?}

ARG WEB_DOMAIN_NAME
ENV WEB_DOMAIN_NAME=${WEB_DOMAIN_NAME:?}

ENV TZ=America/Lima

RUN rm /etc/nginx/conf.d/default.conf
COPY ./docker/prod/nginx/nginx.conf /tmp/nginx.conf.tpl

RUN : \
&& envsubst \
'${DOMAIN_NAME}' \
'${DOMAIN_NAME} ${WEB_DOMAIN_NAME}' \
< /tmp/nginx.conf.tpl \
> /etc/nginx/conf.d/nginx.conf \
&& :

0 comments on commit fc63894

Please sign in to comment.