YosrAbbassi commited on
Commit
9a5472e
1 Parent(s): 4d77da0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image as the base image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container at /app
8
+ COPY . /app
9
+
10
+ # Install system dependencies required for gradio and fitz
11
+ RUN apt-get update && apt-get install -y --no-install-recommends \
12
+ libx11-6 \
13
+ libxcb1 \
14
+ libxext6 \
15
+ libxrender1 \
16
+ libxrandr2 \
17
+ libjpeg-dev \
18
+ libopenjp2-7-dev \
19
+ zlib1g-dev \
20
+ && rm -rf /var/lib/apt/lists/*
21
+
22
+ # Install Python dependencies
23
+ RUN pip install --upgrade pip
24
+ RUN pip install gradio fitz pillow
25
+
26
+ # Run the command to launch your application
27
+ CMD ["python", "FINALFINAL.py"]