Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -20,10 +20,13 @@ RUN apt-get update && \
|
|
| 20 |
|
| 21 |
WORKDIR /app
|
| 22 |
|
| 23 |
-
COPY requirements.txt
|
| 24 |
|
| 25 |
-
RUN
|
| 26 |
-
pip install -r
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
# 安装 Chromium 和 Chromium 所需系统依赖
|
| 29 |
RUN python -m playwright install --with-deps chromium && \
|
|
|
|
| 20 |
|
| 21 |
WORKDIR /app
|
| 22 |
|
| 23 |
+
COPY requirements.txt .
|
| 24 |
|
| 25 |
+
RUN pip install --upgrade pip setuptools wheel \
|
| 26 |
+
&& pip install -r requirements.txt
|
| 27 |
+
|
| 28 |
+
RUN python -m playwright install --with-deps chromium \
|
| 29 |
+
&& chmod -R a+rX /ms-playwright
|
| 30 |
|
| 31 |
# 安装 Chromium 和 Chromium 所需系统依赖
|
| 32 |
RUN python -m playwright install --with-deps chromium && \
|