This one works locally.

This commit is contained in:
Dan Funk 2020-05-26 01:51:21 -04:00
parent d320bb927f
commit 9e1836d06b
1 changed files with 2 additions and 2 deletions

View File

@ -25,10 +25,10 @@ COPY ./docker/substitute-env-variables.sh ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
# Substitute environment variables in nginx configuration and index.html
RUN ["./entrypoint.sh", \
ENTRYPOINT ["./entrypoint.sh", \
"/etc/nginx/html/index.html,/etc/nginx/conf.d/default.conf", \
"PRODUCTION,API_URL,IRB_URL,HOME_ROUTE,BASE_HREF,PORT0", \
"/etc/nginx/html"]
### STAGE 3: Profit! ###
CMD /usr/sbin/nginx -g "daemon off;"
CMD ["nginx", "-g", "daemon off;"]