leonarb commited on
Commit
30f33fb
·
verified ·
1 Parent(s): 52a6700

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -24
Dockerfile CHANGED
@@ -1,29 +1,9 @@
1
- FROM ubuntu:20.04
2
 
3
- ENV DEBIAN_FRONTEND=noninteractive
4
- RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
5
- apt-get update && \
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"]