删除咸鱼旧链路
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
# Dev Dockerfile — single-stage, root, VNC/X11 + Playwright
|
||||
# For production, see backend.Dockerfile (multi-stage build)
|
||||
# 快手轻量开发镜像:只保留 Node 运行时和基础工具。
|
||||
FROM docker.m.daocloud.io/library/node:22-bookworm
|
||||
|
||||
ARG DEBIAN_MIRROR=mirrors.cloud.tencent.com
|
||||
@@ -7,7 +6,6 @@ ARG NPM_REGISTRY=https://registry.npmmirror.com
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV TZ=Asia/Shanghai
|
||||
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
|
||||
ENV NPM_CONFIG_REGISTRY=${NPM_REGISTRY}
|
||||
|
||||
WORKDIR /app
|
||||
@@ -19,22 +17,15 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
curl ca-certificates tzdata \
|
||||
xauth x11vnc novnc websockify xvfb \
|
||||
&& ln -snf /usr/share/zoneinfo/${TZ} /etc/localtime \
|
||||
&& echo ${TZ} > /etc/timezone
|
||||
|
||||
COPY apps/backend/package.json apps/backend/package-lock.json ./
|
||||
RUN --mount=type=cache,target=/root/.npm npm ci
|
||||
|
||||
RUN --mount=type=cache,target=/ms-playwright-cache,sharing=locked \
|
||||
PLAYWRIGHT_BROWSERS_PATH=/ms-playwright-cache \
|
||||
PLAYWRIGHT_DOWNLOAD_HOST=https://npmmirror.com/mirrors/playwright/ \
|
||||
npx playwright install --with-deps chromium \
|
||||
&& cp -r /ms-playwright-cache /ms-playwright
|
||||
|
||||
COPY apps/backend/ ./
|
||||
|
||||
RUN mkdir -p /app/data /app/data/browser-sessions /app/data/redeem-screenshots
|
||||
RUN mkdir -p /app/data
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user