|
|
|
@@ -4,7 +4,7 @@
|
|
|
|
# Used by docker-compose.yml (target: development). Source is bind-mounted in
|
|
|
|
# Used by docker-compose.yml (target: development). Source is bind-mounted in
|
|
|
|
# dev so the COPY . below is effectively replaced at runtime; the layer still
|
|
|
|
# dev so the COPY . below is effectively replaced at runtime; the layer still
|
|
|
|
# exists so the image is self-contained for cold starts (e.g. devcontainer).
|
|
|
|
# exists so the image is self-contained for cold starts (e.g. devcontainer).
|
|
|
|
FROM node:20.19.0-alpine3.21 AS development
|
|
|
|
FROM node:22-alpine3.21 AS development
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json ./
|
|
|
|
COPY package.json package-lock.json ./
|
|
|
|
RUN npm ci
|
|
|
|
RUN npm ci
|
|
|
|
@@ -14,7 +14,7 @@ CMD ["npm", "run", "dev"]
|
|
|
|
|
|
|
|
|
|
|
|
# ── Build ────────────────────────────────────────────────────────────────────
|
|
|
|
# ── Build ────────────────────────────────────────────────────────────────────
|
|
|
|
# Compiles the SvelteKit Node-adapter output to /app/build.
|
|
|
|
# Compiles the SvelteKit Node-adapter output to /app/build.
|
|
|
|
FROM node:20.19.0-alpine3.21 AS build
|
|
|
|
FROM node:22-alpine3.21 AS build
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
# VITE_SENTRY_DSN is a build-time variable — Vite bakes it into the bundle.
|
|
|
|
# VITE_SENTRY_DSN is a build-time variable — Vite bakes it into the bundle.
|
|
|
|
# Passed via docker-compose build.args; empty string disables the SDK.
|
|
|
|
# Passed via docker-compose build.args; empty string disables the SDK.
|
|
|
|
@@ -27,7 +27,7 @@ RUN npm run build
|
|
|
|
|
|
|
|
|
|
|
|
# ── Production ───────────────────────────────────────────────────────────────
|
|
|
|
# ── Production ───────────────────────────────────────────────────────────────
|
|
|
|
# Self-contained Node server. `node build` is the adapter-node entrypoint.
|
|
|
|
# Self-contained Node server. `node build` is the adapter-node entrypoint.
|
|
|
|
FROM node:20.19.0-alpine3.21 AS production
|
|
|
|
FROM node:22-alpine3.21 AS production
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
COPY --from=build /app/build ./build
|
|
|
|
COPY --from=build /app/build ./build
|
|
|
|
|