Remove needless welcome nginx location

This commit is contained in:
danilapog 2022-08-04 12:46:24 +03:00
parent 7c9286abf9
commit be6a3bdc93

View file

@ -1,4 +1,4 @@
### Arguments only for FROM instruction ### ### Arguments avavlivable only for FROM instruction ###
ARG PRODUCT_EDITION= ARG PRODUCT_EDITION=
ARG TAG=latest ARG TAG=latest
@ -15,9 +15,4 @@ RUN rm -rf /var/www/$COMPANY_NAME/$PRODUCT_NAME-example \
&& rm -rf /etc/$COMPANY_NAME/$PRODUCT_NAME-example \ && rm -rf /etc/$COMPANY_NAME/$PRODUCT_NAME-example \
&& rm -f $DS_SUPERVISOR_CONF \ && rm -f $DS_SUPERVISOR_CONF \
&& rm -f /etc/nginx/includes/ds-example.conf \ && rm -f /etc/nginx/includes/ds-example.conf \
&& ln -s /etc/$COMPANY_NAME/$PRODUCT_NAME/supervisor/ds.conf $DS_SUPERVISOR_CONF \ && ln -s /etc/$COMPANY_NAME/$PRODUCT_NAME/supervisor/ds.conf $DS_SUPERVISOR_CONF
&& echo "location ~ ^(\/welcome\/.*)$ {" >> $WELCOME_CONF_DIR \
&& echo "\ \expires 365d;" >> $WELCOME_CONF_DIR \
&& echo "\ \root /var/www/$COMPANY_NAME/$PRODUCT_NAME/server/welcome/;" >> $WELCOME_CONF_DIR \
&& echo "index index.html;" >> $WELCOME_CONF_DIR \
&& echo "}" >> $WELCOME_CONF_DIR