chore: docker compose template for homeserver deployment

This commit is contained in:
2026-04-09 01:20:03 +02:00
parent 3605bef2b0
commit 808ce287a5
3 changed files with 58 additions and 0 deletions

View File

@@ -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