Skip to content

Commit 312d5fd

Browse files
committed
deploy: update image name and server directory, set api url in docker build
1 parent ab267eb commit 312d5fd

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
FROM 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"
55
LABEL org.opencontainers.image.licenses=MIT
66

77
ENV PNPM_HOME="/pnpm"
88
ENV PATH="$PNPM_HOME:$PATH"
9+
ENV VITE_NUTS_API_BASE="http://api:8000"
910
RUN corepack enable
1011

1112
WORKDIR /app
@@ -18,7 +19,7 @@ FROM base AS build
1819
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
1920
COPY frontend/ .
2021
ENV NODE_ENV=production
21-
RUN pnpm build
22+
RUN VITE_NUTS_API_BASE=$VITE_NUTS_API_BASE pnpm build
2223

2324
FROM nginx:alpine
2425

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
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

nginx/conf/nginx.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)