mirror of
https://github.com/hempyhemp/hh-auto-reply.git
synced 2026-06-08 18:04:57 +00:00
🔧 refactor(Dockerfile): Удалены лишние установки зависимостей, оптимизирована установка Playwright.tabs
Some checks failed
Deploy / deploy (push) Failing after 31s
Some checks failed
Deploy / deploy (push) Failing after 31s
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -13,9 +13,6 @@ RUN corepack enable
|
|||||||
|
|
||||||
RUN yarn install --immutable
|
RUN yarn install --immutable
|
||||||
|
|
||||||
# install Chromium + all system dependencies for Playwright
|
|
||||||
RUN npx playwright install --with-deps chromium
|
|
||||||
|
|
||||||
COPY tsconfig.json ./
|
COPY tsconfig.json ./
|
||||||
COPY prisma ./prisma
|
COPY prisma ./prisma
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
@@ -26,16 +23,18 @@ RUN yarn prisma generate
|
|||||||
FROM node:22-slim AS runner
|
FROM node:22-slim AS runner
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends openssl && rm -rf /var/lib/apt/lists/*
|
||||||
openssl \
|
|
||||||
libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 \
|
|
||||||
libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 \
|
|
||||||
libxrandr2 libgbm1 libasound2 \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
RUN corepack enable && npm install -g opencode-ai
|
RUN corepack enable && npm install -g opencode-ai
|
||||||
|
|
||||||
COPY --from=builder /root/.cache/ms-playwright /root/.cache/ms-playwright
|
|
||||||
COPY --from=builder /app/node_modules ./node_modules
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
|
|
||||||
|
# Copy Playwright browser binary and install only system deps (no re-download)
|
||||||
|
# install Chromium + all system dependencies for Playwright
|
||||||
|
RUN npx playwright install --with-deps chromium
|
||||||
|
|
||||||
|
COPY --from=builder /root/.cache/ms-playwright /root/.cache/ms-playwright
|
||||||
|
RUN npx playwright install-deps chromium
|
||||||
|
|
||||||
COPY --from=builder /app/src ./src
|
COPY --from=builder /app/src ./src
|
||||||
COPY --from=builder /app/prisma ./prisma
|
COPY --from=builder /app/prisma ./prisma
|
||||||
COPY package.json yarn.lock .yarnrc.yml tsconfig.json ./
|
COPY package.json yarn.lock .yarnrc.yml tsconfig.json ./
|
||||||
|
|||||||
Reference in New Issue
Block a user