ManailFatima commited on
Commit
e36010a
·
verified ·
1 Parent(s): 78362e2

Update DockerFile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile CHANGED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Set environment variables
4
+ ENV PYTHONDONTWRITEBYTECODE=1
5
+ ENV PYTHONUNBUFFERED=1
6
+
7
+ # Set work directory
8
+ WORKDIR /code
9
+
10
+ # Install system dependencies
11
+ RUN apt-get update && apt-get install -y build-essential
12
+
13
+ # Install Python dependencies
14
+ COPY requirements.txt /code/
15
+ RUN pip install --upgrade pip
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy project files
19
+ COPY . /code/
20
+
21
+ # Expose port (Flask default is 5000)
22
+ EXPOSE 7860
23
+
24
+ # Run the app
25
+ CMD ["python", "app.py"]