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:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user