From b8cd5c7e3b2ab59f7f2f0c634ef2b20ef84a31cc Mon Sep 17 00:00:00 2001 From: TheMaddax Date: Sat, 23 Nov 2024 21:19:49 -0600 Subject: [PATCH] Update with modules --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1f2c740..34617b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ RUN npm install -g npm@latest COPY package*.json ./ RUN npm ci RUN npm install -g typescript +RUN npm install --save-dev @types/vite @vitejs/plugin-react # Copy source code and build COPY . . @@ -25,10 +26,8 @@ FROM nginx:alpine COPY --from=build /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf -# Health check for container monitoring HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD curl -f http://localhost/ || exit 1 -# Expose port and start Nginx EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]