From 4b0afaa0beed1428d5d32bac0c51f8a21e00a116 Mon Sep 17 00:00:00 2001 From: Scott Hatlen Date: Sun, 31 Jul 2022 19:19:06 -0700 Subject: [PATCH] makes nginx process run in fg to keep container alive --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7c64388..3ffd126 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ RUN hugo FROM nginx:latest as server_stage COPY --from=build_stage /opt/scottyah-blog/hugo-content/public/ /usr/share/nginx/html EXPOSE 80 -CMD ["nginx"] \ No newline at end of file +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file