leonarb commited on
Commit
02173a5
·
verified ·
1 Parent(s): 07beedf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -4
Dockerfile CHANGED
@@ -1,8 +1,20 @@
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
 
 
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