Feat: Ajustes y Preparación Docker

This commit is contained in:
2025-11-20 12:39:23 -03:00
parent c94936d56e
commit 1e85b2ed86
11 changed files with 317 additions and 56 deletions

View File

@@ -0,0 +1,21 @@
# Dockerfile.admin
# ---- Etapa de Compilación (Build) ----
FROM node:24-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
# Definimos la URL de la API para el panel de admin
RUN VITE_API_BASE_URL=http://192.168.5.129:8080 npm run build
# ---- Etapa Final (Runtime) ----
FROM nginx:alpine AS final
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]