mike23415 commited on
Commit
1211a77
·
verified ·
1 Parent(s): 596bd61

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Avoid interactive prompts during build
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
+ # System dependencies
7
+ RUN apt-get update && apt-get install -y \
8
+ libglib2.0-0 libsm6 libxext6 libxrender-dev poppler-utils \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Create app directory
12
+ WORKDIR /app
13
+
14
+ # Copy files
15
+ COPY app.py requirements.txt ./
16
+
17
+ # Install dependencies
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
+
20
+ # Expose port for Hugging Face
21
+ EXPOSE 7860
22
+
23
+ # Run the app
24
+ CMD ["python", "app.py"]