Primera version de frontend

This commit is contained in:
2025-07-28 11:00:25 -06:00
parent 748e37cbcc
commit 0dac802736
78 changed files with 18757 additions and 0 deletions

22
Dockerfile.prod Normal file
View File

@@ -0,0 +1,22 @@
# Dockerfile de producción para Vite + React
FROM node:18-alpine AS build
WORKDIR /app
COPY package*.json ./
COPY vite.config.* ./
RUN npm install --frozen-lockfile
COPY . .
RUN npm run build
# Etapa final: Nginx para servir archivos estáticos
FROM nginx:alpine
# Copia los archivos estáticos generados a la carpeta de Nginx
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]