Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -24
Dockerfile
CHANGED
@@ -1,29 +1,9 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
|
4 |
-
RUN
|
5 |
-
|
6 |
-
apt-get install -y \
|
7 |
-
wget build-essential cmake git g++ pkg-config libfontforge-dev \
|
8 |
-
fontforge libpoppler-glib-dev poppler-utils \
|
9 |
-
libpng-dev libjpeg-dev libtiff-dev \
|
10 |
-
zlib1g-dev libfreetype6-dev libxrender-dev \
|
11 |
-
libxml2-dev libspiro-dev libpango1.0-dev \
|
12 |
-
tzdata python3 python3-pip && \
|
13 |
-
apt-get clean
|
14 |
|
15 |
-
# Clone and build pdf2htmlEX
|
16 |
-
RUN git clone https://github.com/coolwanglu/pdf2htmlEX.git && \
|
17 |
-
cd pdf2htmlEX && \
|
18 |
-
cmake . && \
|
19 |
-
make && \
|
20 |
-
make install
|
21 |
-
|
22 |
-
# Install Python dependencies
|
23 |
-
COPY requirements.txt .
|
24 |
-
RUN pip3 install -r requirements.txt
|
25 |
-
|
26 |
-
# Copy app
|
27 |
COPY app.py .
|
28 |
|
29 |
CMD ["python3", "app.py"]
|
|
|
1 |
+
FROM bwits/pdf2htmlex:latest
|
2 |
|
3 |
+
# Install Python and Gradio
|
4 |
+
RUN apt-get update && apt-get install -y python3 python3-pip && \
|
5 |
+
pip3 install gradio==4.24.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
COPY app.py .
|
8 |
|
9 |
CMD ["python3", "app.py"]
|