TANMIHA commited on
Commit
4837da2
·
1 Parent(s): e1c4a41

Prepare Dockerfile for deployment

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -2
Dockerfile CHANGED
@@ -1,8 +1,17 @@
 
1
  FROM python:3.10
2
 
 
3
  WORKDIR /app
 
 
4
  COPY . .
5
 
6
- RUN pip install -r requirements.txt
 
 
 
 
7
 
8
- CMD ["python", "-u", "server.py"]
 
 
1
+ # Use Python 3.10 base image
2
  FROM python:3.10
3
 
4
+ # Set working directory
5
  WORKDIR /app
6
+
7
+ # Copy all project files
8
  COPY . .
9
 
10
+ # Install dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Expose Flask port
14
+ EXPOSE 8000
15
 
16
+ # Run the server
17
+ CMD ["python", "server.py"]