add dockerfile

This commit is contained in:
nett00n authored and nett00n committed 2025-09-16 14:14:37 +02:00
1 parent ff6de00988
commit a4ad1d8645
2 files changed
+67

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
# cat Dockerfile
# Stage 1: Builder
FROM node:20-alpine AS builder
WORKDIR /app
# Install pnpm
RUN npm install -g pnpm@9.0.0
# Copy files
COPY pnpm-lock.yaml ./
COPY package.json ./
COPY turbo.json ./
COPY . .
# Install deps and build
RUN pnpm install --frozen-lockfile
RUN pnpm build
# Stage 2: Runtime
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app ./
CMD ["node", "apps/web/server.js"]