WIP proxy #3

Open
garbelo wants to merge 65 commits from proxy into main
Showing only changes of commit 2433b48c35 - Show all commits

View File

@@ -21,16 +21,18 @@ ENV VITE_API_BASE_URL=${VITE_API_BASE_URL}
RUN npm run build
# 2) Fase de servidor estático
FROM node:20-alpine
# FROM node:20-alpine
FROM nginx:alpine
WORKDIR /app
# WORKDIR /app
RUN rm -rf /usr/share/nginx/html/*
# Copiamos el build
COPY --from=build /app/dist ./dist
COPY --from=build /app/dist /usr/share/nginx/html
# Server estático muy simple
RUN npm install -g serve
# RUN npm install -g serve
EXPOSE 4173
EXPOSE 80
CMD ["serve", "-s", "dist", "-l", "4173"]
CMD ["nginx", "-g", "daemon off;"]