🚀 feat(Dockerfile): Устанавливаю Chromium и системные зависимости для Playwright.
All checks were successful
Deploy / deploy (push) Successful in 3m31s

This commit is contained in:
Oscar
2026-05-28 14:14:22 +03:00
parent 16924d5f6a
commit 01d014ff54

View File

@@ -13,6 +13,9 @@ RUN corepack enable
RUN yarn install --immutable
# install Chromium + all system dependencies for Playwright
RUN npx playwright install --with-deps chromium
COPY tsconfig.json ./
COPY prisma ./prisma
COPY src ./src
@@ -23,16 +26,13 @@ RUN yarn prisma generate
FROM node:22-slim AS runner
WORKDIR /app
RUN corepack enable
RUN corepack enable && npm install -g opencode-ai
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/src ./src
COPY --from=builder /app/prisma ./prisma
COPY package.json yarn.lock .yarnrc.yml tsconfig.json ./
# install Chromium + all system dependencies for Playwright
RUN npx playwright install --with-deps chromium
# SQLite data lives on a volume so it survives container restarts
RUN mkdir -p /data
ENV DATABASE_URL="file:/data/dev.db"