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;"]