From 9e1836d06bb8abca9f58544730f25da377755fa8 Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Tue, 26 May 2020 01:51:21 -0400 Subject: [PATCH] This one works locally. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8dba494..32263b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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;"]