GreenBeanzz7 commited on
Commit
e7d2697
·
verified ·
1 Parent(s): 31e1791

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -1,21 +1,19 @@
1
  FROM python:3.10-slim
2
 
3
- # Set working directory
4
  WORKDIR /home/user/app
5
 
6
- # Copy requirements first for caching
7
  COPY requirements.txt .
8
 
9
- # Upgrade pip and install requirements
10
  RUN pip install --no-cache-dir --upgrade pip && \
11
- pip install --no-cache-dir -r requirements.txt && \
12
- pip install --upgrade openai
13
 
14
- # Copy all app files
15
  COPY . .
16
 
17
  # Expose port
18
  EXPOSE 7860
19
 
20
- # Run app
21
  CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /home/user/app
4
 
5
+ # Copy requirements
6
  COPY requirements.txt .
7
 
8
+ # Install dependencies
9
  RUN pip install --no-cache-dir --upgrade pip && \
10
+ pip install --no-cache-dir -r requirements.txt
 
11
 
12
+ # Copy app
13
  COPY . .
14
 
15
  # Expose port
16
  EXPOSE 7860
17
 
18
+ # Run
19
  CMD ["python", "app.py"]