From d11e029d5f758276e8db988e4c7caae8750e1f3b Mon Sep 17 00:00:00 2001 From: TheMaddax Date: Sat, 23 Nov 2024 18:07:15 -0600 Subject: [PATCH] Update with npm ci --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5c98640..e671eee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ARG NODE_ENV=production ENV NODE_ENV=${NODE_ENV} WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm ci COPY . . RUN npm run build @@ -14,4 +14,5 @@ COPY --from=build /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD curl -f http://localhost/ || exit 1 -EXPOSE 80 \ No newline at end of file +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"]