dragxd commited on
Commit
68c5ec8
·
verified ·
1 Parent(s): 469cd24

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -10,7 +10,11 @@ RUN apt-get update && \
10
 
11
  # Install Python dependencies
12
  COPY requirements.txt .
13
- RUN pip install --no-cache-dir --upgrade pip && \
 
 
 
 
14
  pip install --no-cache-dir -r requirements.txt
15
 
16
  # Copy application code
 
10
 
11
  # Install Python dependencies
12
  COPY requirements.txt .
13
+
14
+ # Create venv and install dependencies
15
+ RUN python -m venv /opt/venv
16
+ ENV PATH="/opt/venv/bin:$PATH"
17
+ RUN pip install --upgrade pip && \
18
  pip install --no-cache-dir -r requirements.txt
19
 
20
  # Copy application code