Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
-
# Installer les librairies système nécessaires à newspaper3k
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
libxml2-dev \
|
| 6 |
libxslt1-dev \
|
|
@@ -17,9 +17,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 17 |
|
| 18 |
WORKDIR /app
|
| 19 |
|
| 20 |
-
# Fichiers requirements + app
|
| 21 |
COPY requirements.txt .
|
| 22 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
| 24 |
COPY app.py .
|
| 25 |
|
|
|
|
| 1 |
FROM python:3.10-slim
|
| 2 |
|
| 3 |
+
# Installer les librairies système nécessaires à newspaper3k et lxml
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
libxml2-dev \
|
| 6 |
libxslt1-dev \
|
|
|
|
| 17 |
|
| 18 |
WORKDIR /app
|
| 19 |
|
|
|
|
| 20 |
COPY requirements.txt .
|
| 21 |
+
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
|
| 22 |
|
| 23 |
COPY app.py .
|
| 24 |
|