RishiXD commited on
Commit
5defcd4
·
verified ·
1 Parent(s): 6b7d675

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ libgl1-mesa-glx \
10
+ libglib2.0-0 \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Copy all files to the container
14
+ COPY . /app
15
+
16
+ # Install required Python packages
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Expose the port Flask will run on
20
+ EXPOSE 7860
21
+
22
+ # Run the Flask app
23
+ CMD ["python", "app.py"]