Shirpi commited on
Commit
47bc661
·
verified ·
1 Parent(s): 859ef51

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use python 3.9 image
2
+ FROM python:3.9-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy files
8
+ COPY . /app
9
+
10
+ # Install dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Create cache directory for Hugging Face
14
+ RUN mkdir -p /.cache/huggingface && chmod -R 777 /.cache
15
+
16
+ # Expose port 7860 (Hugging Face default)
17
+ EXPOSE 7860
18
+
19
+ # Command to run the app
20
+ CMD ["python", "app.py"]