arshtech commited on
Commit
02fce1b
·
verified ·
1 Parent(s): c6cf1e7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -2,11 +2,18 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
5
  COPY requirements.txt .
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
  COPY . .
9
 
10
- EXPOSE 7860
11
 
12
  CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ gcc \
8
+ python3-dev \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
  COPY requirements.txt .
12
+ RUN pip install --no-cache-dir --upgrade pip
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
  COPY . .
16
 
17
+ EXPOSE 5000
18
 
19
  CMD ["python", "app.py"]