fix: 生产阶段也接收代理加速 apt-get
This commit is contained in:
@@ -40,6 +40,12 @@ RUN npm prune --omit=dev
|
|||||||
|
|
||||||
FROM node:22-slim
|
FROM node:22-slim
|
||||||
|
|
||||||
|
# Proxy for apt-get (passed via --build-arg)
|
||||||
|
ARG HTTP_PROXY
|
||||||
|
ARG HTTPS_PROXY
|
||||||
|
ENV HTTP_PROXY=${HTTP_PROXY} \
|
||||||
|
HTTPS_PROXY=${HTTPS_PROXY}
|
||||||
|
|
||||||
# Install Chromium dependencies required by Playwright/rebrowser-playwright
|
# Install Chromium dependencies required by Playwright/rebrowser-playwright
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
libnss3 \
|
libnss3 \
|
||||||
|
|||||||
Reference in New Issue
Block a user