Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +16 -4
Dockerfile
CHANGED
@@ -1,8 +1,20 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
COPY app.py .
|
8 |
|
|
|
1 |
+
FROM ubuntu:22.04
|
2 |
|
3 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
+
|
5 |
+
# Install dependencies
|
6 |
+
RUN apt-get update && apt-get install -y \
|
7 |
+
wget fontconfig libfontconfig1 libfreetype6 libjpeg8 libpng16-16 \
|
8 |
+
libpoppler-glib8 libxml2 zlib1g libxrender1 libpangocairo-1.0-0 \
|
9 |
+
python3 python3-pip && \
|
10 |
+
apt-get clean
|
11 |
+
|
12 |
+
# Download prebuilt pdf2htmlEX binary (built by bwits)
|
13 |
+
RUN wget -O /usr/local/bin/pdf2htmlEX https://github.com/BWITS/pdf2htmlex-docker/releases/download/v0.18.8.rc2/pdf2htmlEX && \
|
14 |
+
chmod +x /usr/local/bin/pdf2htmlEX
|
15 |
+
|
16 |
+
# Install Gradio
|
17 |
+
RUN pip3 install gradio==4.24.0
|
18 |
|
19 |
COPY app.py .
|
20 |
|