Dockerfile: støtt VITE_SPACETIMEDB_URL som build-arg
Bakes inn i frontend ved build-time slik at chat bruker SpacetimeDB-adapter i stedet for PG-polling. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d4d43dfcd2
commit
9277fc6012
1 changed files with 2 additions and 0 deletions
|
|
@ -3,6 +3,8 @@ WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
|
ARG VITE_SPACETIMEDB_URL=""
|
||||||
|
ENV VITE_SPACETIMEDB_URL=$VITE_SPACETIMEDB_URL
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM node:20-alpine
|
FROM node:20-alpine
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue