RushiMane2003 commited on
Commit
53d7bd7
·
verified ·
1 Parent(s): 640d7ff

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Set the working directory
4
+ WORKDIR /app
5
+
6
+ # Copy application files
7
+ COPY . /app
8
+
9
+ # Ensure the uploads folder exists and is writable
10
+ RUN mkdir -p static/uploads && chmod -R 777 static/uploads
11
+
12
+ # Install dependencies
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Expose the port your app runs on
16
+ EXPOSE 7860
17
+
18
+ # Command to run the application
19
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]