Initial project commit: Docker + SvelteKit source

This commit is contained in:
2026-02-09 10:32:51 -07:00
parent fafb3d70fe
commit 7e7773578d
20 changed files with 6077 additions and 0 deletions

33
Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
# Stage 1: Build
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci
# Copy source code
COPY . .
# Build the application
RUN npm run build
RUN npm prune --production
# Stage 2: Run
FROM node:20-alpine
WORKDIR /app
# Copy built application and dependencies
COPY --from=builder /app/build build/
COPY --from=builder /app/node_modules node_modules/
COPY package.json .
# Expose port
EXPOSE 3000
# Start the application
CMD ["node", "build"]