feat: docker setup
Some checks failed
ci / ci (22, ubuntu-latest) (push) Has been cancelled
Build and Push Docker Image / build (push) Successful in 4m46s

This commit is contained in:
2026-03-25 17:44:23 +01:00
parent 9c61d7561a
commit 561fb56419
4 changed files with 101 additions and 0 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
FROM node:22-alpine AS base
RUN corepack enable pnpm
FROM base AS deps
WORKDIR /app
RUN apk add --no-cache python3 make g++
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
FROM base AS build
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN pnpm build
FROM base AS runtime
WORKDIR /app
COPY --from=build /app/.output ./.output
ENV NODE_ENV=production
EXPOSE 3000
CMD ["node", "./.output/server/index.mjs"]