Jai Ansh Bindra commited on
Commit
a133f17
·
1 Parent(s): aeb5f89

Add Flask app, requirements, and Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python base image
2
+ FROM python:3.9-slim
3
+
4
+ # Create a working directory
5
+ WORKDIR /code
6
+
7
+ # Copy requirements and install dependencies
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy the rest of the app
12
+ COPY . .
13
+
14
+ # Expose the port expected by Hugging Face Spaces
15
+ EXPOSE 7860
16
+
17
+ # Run your Flask app
18
+ CMD ["python", "app.py"]
19
+