File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 11FROM node:22-slim AS base
22
3- LABEL org.opencontainers.image.source=https://github.com/ssciwr/onehealth -frontend
4- LABEL org.opencontainers.image.description="Onehealth Frontend"
3+ LABEL org.opencontainers.image.source=https://github.com/ssciwr/heiplanet -frontend
4+ LABEL org.opencontainers.image.description="Heiplanet Frontend"
55LABEL org.opencontainers.image.licenses=MIT
66
77ENV PNPM_HOME="/pnpm"
88ENV PATH="$PNPM_HOME:$PATH"
9+ ENV VITE_NUTS_API_BASE="http://api:8000"
910RUN corepack enable
1011
1112WORKDIR /app
@@ -18,7 +19,7 @@ FROM base AS build
1819RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
1920COPY frontend/ .
2021ENV NODE_ENV=production
21- RUN pnpm build
22+ RUN VITE_NUTS_API_BASE=$VITE_NUTS_API_BASE pnpm build
2223
2324FROM nginx:alpine
2425
Original file line number Diff line number Diff line change 11services :
22 frontend :
3- image : ghcr.io/ssciwr/onehealth-map- frontend:latest
3+ image : ghcr.io/ssciwr/heiplanet- frontend:main
44 build :
55 context : .
66 dockerfile : Dockerfile
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ server {
1313 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
1414 proxy_set_header X-Forwarded-Proto $scheme ;
1515 }
16- # Serve the app from /onehealth-map -frontend/
17- location /onehealth- map -frontend/ {
16+ # Serve the app from /heiplanet -frontend/
17+ location /heiplanet -frontend/ {
1818 alias /usr/share/nginx/html/;
19- try_files $uri $uri / /onehealth- map -frontend/index .html;
19+ try_files $uri $uri / /heiplanet -frontend/index .html;
2020 }
2121
2222 # Serve assets with correct MIME types - more specific regex
You can’t perform that action at this time.
0 commit comments