Update with modules
This commit is contained in:
parent
932a73385f
commit
b8cd5c7e3b
1 changed files with 1 additions and 2 deletions
|
|
@ -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;"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue