build: 标准镜像名 + 阿里apt + 清华pip + playwright国内镜像
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
FROM docker.m.daocloud.io/library/python:3.11-slim
|
FROM python:3.11-slim
|
||||||
|
|
||||||
ENV TZ=Asia/Shanghai \
|
ENV TZ=Asia/Shanghai \
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
@@ -20,7 +20,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt \
|
RUN pip install --no-cache-dir -r requirements.txt \
|
||||||
&& playwright install chromium || true
|
&& (playwright install chromium || playwright install chromium || true)
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user