qtpi commited on
Commit
369b866
·
verified ·
1 Parent(s): 3d04d70

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies (Java for pdffigures2.jar)
8
+ RUN apt-get update && \
9
+ apt-get install -y default-jre && \
10
+ apt-get clean && \
11
+ rm -rf /var/lib/apt/lists/*
12
+
13
+ # Copy project files
14
+ COPY . .
15
+
16
+ # Install Python dependencies
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Hugging Face requires port 7860 to be exposed
20
+ EXPOSE 7860
21
+
22
+ # Run the Gradio app
23
+ CMD ["python", "app.py"]