converted to proper npm sveltekit project

This commit is contained in:
C-West8
2026-07-22 14:52:35 -05:00
parent ba0a445aaf
commit 086542169c
37 changed files with 6018 additions and 14 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
# --- Build stage: install deps and compile the SvelteKit app ---
FROM node:22-alpine AS build
WORKDIR /app
# Install dependencies first (better layer caching)
COPY package.json package-lock.json* ./
RUN npm ci
# Build the app
COPY . .
RUN npm run build
# Drop dev dependencies so the runtime image stays small
RUN npm prune --omit=dev
# --- Runtime stage: just Node + the built server ---
FROM node:22-alpine AS runtime
WORKDIR /app
ENV NODE_ENV=production
COPY --from=build /app/build ./build
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/package.json ./package.json
EXPOSE 3000
CMD ["node", "build"]