Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -10,7 +10,11 @@ RUN apt-get update && \
|
|
| 10 |
|
| 11 |
# Install Python dependencies
|
| 12 |
COPY requirements.txt .
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|