Omkar1806 commited on
Commit
e330cef
·
verified ·
1 Parent(s): d3b065a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -2,15 +2,19 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- # Upgrade pip and install requirements
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir --upgrade pip && \
8
  pip install --no-cache-dir -r requirements.txt
9
 
10
- # Copy all files
11
  COPY . .
12
 
 
13
  ENV PYTHONPATH=/app
 
 
14
  EXPOSE 7860
15
 
 
16
  CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install dependencies
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir --upgrade pip && \
8
  pip install --no-cache-dir -r requirements.txt
9
 
10
+ # Copy all project files
11
  COPY . .
12
 
13
+ # Set environment path
14
  ENV PYTHONPATH=/app
15
+
16
+ # Port for Hugging Face
17
  EXPOSE 7860
18
 
19
+ # Run the application
20
  CMD ["python", "app.py"]