Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -8,7 +8,7 @@ RUN apt-get update && apt-get install -y \
|
|
8 |
gnupg \
|
9 |
libxml2-dev \
|
10 |
libxslt-dev \
|
11 |
-
&& curl -sL https://deb.nodesource.com/
|
12 |
&& apt-get install -y nodejs \
|
13 |
&& npm install -g playwright \
|
14 |
&& playwright install-deps chromium \
|
@@ -22,9 +22,8 @@ RUN mkdir -p templates && \
|
|
22 |
curl -L https://huggingface.co/datasets/qdqd/web-api/resolve/main/requirements.txt -o requirements.txt && \
|
23 |
curl -L https://huggingface.co/datasets/qdqd/web-api/resolve/main/index.html -o templates/index.html
|
24 |
|
25 |
-
# Install Python dependencies
|
26 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
27 |
-
&& pip install lxml[html_clean]==4.9.4 lxml_html_clean==3.0.0
|
28 |
|
29 |
# Configure environment
|
30 |
ENV PLAYWRIGHT_BROWSERS_PATH=/home/user/.cache/ms-playwright \
|
|
|
8 |
gnupg \
|
9 |
libxml2-dev \
|
10 |
libxslt-dev \
|
11 |
+
&& curl -sL https://deb.nodesource.com/setup_18.x | bash - \
|
12 |
&& apt-get install -y nodejs \
|
13 |
&& npm install -g playwright \
|
14 |
&& playwright install-deps chromium \
|
|
|
22 |
curl -L https://huggingface.co/datasets/qdqd/web-api/resolve/main/requirements.txt -o requirements.txt && \
|
23 |
curl -L https://huggingface.co/datasets/qdqd/web-api/resolve/main/index.html -o templates/index.html
|
24 |
|
25 |
+
# Install Python dependencies
|
26 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
27 |
|
28 |
# Configure environment
|
29 |
ENV PLAYWRIGHT_BROWSERS_PATH=/home/user/.cache/ms-playwright \
|