2025-08-26 22:47:34+04:00
Some checks failed
Docker Build / docker (push) Failing after 2m23s

This commit is contained in:
2025-08-26 22:47:34 +04:00
parent 1c9eec978b
commit 6ed2c7f00c
3 changed files with 107 additions and 0 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
# 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"]