Shreyas commited on
Commit
ee1d6a8
·
verified ·
1 Parent(s): c20196f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a Python 3.10 base image
2
+ FROM python:3.10
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Copy all project files into the Docker image
8
+ COPY . /app
9
+
10
+ # Install all dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # The app listens on port 7860 on Hugging Face
14
+ EXPOSE 7860
15
+
16
+ # Define the command to run the application using the Procfile
17
+ CMD ["sh", "-c", "gunicorn --bind 0.0.0.0:7860 app:app"]