Squash commmits

This commit is contained in:
tobias
2025-07-21 11:33:44 +02:00
commit 60d6c1cb8c
32 changed files with 4495 additions and 0 deletions

27
Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM node:22-alpine AS builder
WORKDIR /app
RUN npm install -g corepack@0.24.1 && corepack enable
# Copy deps first for caching
COPY pnpm-lock.yaml package.json ./
RUN pnpm i --frozen-lockfile
# Copy rest of app
COPY . .
# Build
RUN pnpm run build
RUN pnpm prune --production
FROM node:22-alpine
WORKDIR /app
COPY --from=builder /app/build build/
COPY --from=builder /app/node_modules node_modules/
COPY package.json .
EXPOSE 3000
ENV NODE_ENV=production
CMD [ "node", "build" ]