bacngv commited on
Commit
d7acc9c
·
verified ·
1 Parent(s): 630879e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a base image
2
+ FROM python:3.10-slim
3
+
4
+ # Install system dependencies, including poppler-utils
5
+ RUN apt-get update && apt-get install -y \
6
+ poppler-utils \
7
+ && apt-get clean
8
+
9
+ # Install Python dependencies
10
+ COPY requirements.txt .
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Copy your app
14
+ COPY . /app
15
+ WORKDIR /app
16
+
17
+ # Expose the app on port 7860
18
+ EXPOSE 7860
19
+
20
+ # Run the Gradio app
21
+ CMD ["python", "app.py"]