chore: update Dockerfile and .dockerignore to clarify environment variable handling and improve build context; adjust Footer component to use dynamic base URL for logo

This commit is contained in:
Alexis
2026-05-13 12:59:47 +02:00
parent cd9ad28a98
commit a3b9082a71
3 changed files with 9 additions and 4 deletions
+5 -1
View File
@@ -7,7 +7,11 @@ COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build # genera dist/ con base=/orcid2words/
# `env_file` en docker-compose solo inyecta variables en el contenedor al ARRANCAR
# (aquí nginx no usa Vite). `vite build` corre en esta fase y necesita `VITE_*`
# ya definidas: `.env` no entra en el contexto de build (.dockerignore).
ENV VITE_BASE_PATH=/orcid2words/
RUN npm run build
# ── Serve stage ────────────────────────────────────────────────
FROM nginx:alpine