Private
Public Access
1
0
Files
homepage/Containerfile
Adrian Fennert 7249cbde25 feat: add container file
- update README.md for containerization
2026-02-12 20:23:04 +01:00

22 lines
410 B
Docker

# Stage 1: Build
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
RUN npm prune --production
# Stage 2: Run
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/build ./build
COPY --from=builder /app/node_modules ./node_modules
COPY package.json .
# Default SvelteKit production port
ENV PORT=3000
EXPOSE 3000
# Start the app
CMD ["node", "build"]