chore: docker compose template for homeserver deployment
This commit is contained in:
@@ -12,6 +12,9 @@ FROM node:20-alpine AS build-env
|
||||
COPY . /app/
|
||||
COPY --from=development-dependencies-env /app/node_modules /app/node_modules
|
||||
WORKDIR /app
|
||||
# VITE_API_URL is baked into the bundle at build time (both SSR and client use it)
|
||||
ARG VITE_API_URL=http://localhost:8000
|
||||
ENV VITE_API_URL=$VITE_API_URL
|
||||
RUN npm run build
|
||||
|
||||
FROM node:20-alpine
|
||||
|
||||
Reference in New Issue
Block a user