Fix: VITE_PB_URL als Docker build-arg (api.vereins.haus)
This commit is contained in:
parent
773046c80d
commit
94ca36f470
2 changed files with 4 additions and 0 deletions
|
|
@ -3,6 +3,8 @@ WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
|
ARG VITE_PB_URL=http://vereinshaus-pocketbase:8090
|
||||||
|
ENV VITE_PB_URL=$VITE_PB_URL
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:22-alpine
|
FROM node:22-alpine
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,8 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ./app
|
context: ./app
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
args:
|
||||||
|
VITE_PB_URL: https://api.vereins.haus
|
||||||
image: vereinshaus-app
|
image: vereinshaus-app
|
||||||
container_name: vereinshaus-app
|
container_name: vereinshaus-app
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue