Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -11,11 +11,12 @@ RUN apt-get update && \
|
|
11 |
# Install Python dependencies
|
12 |
COPY requirements.txt .
|
13 |
|
14 |
-
#
|
15 |
-
RUN python -m venv venv
|
16 |
-
ENV PATH="/app/venv/bin:$PATH"
|
17 |
RUN pip install --upgrade pip && \
|
18 |
-
pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
19 |
|
20 |
# Copy application code
|
21 |
COPY app.py .
|
|
|
11 |
# Install Python dependencies
|
12 |
COPY requirements.txt .
|
13 |
|
14 |
+
# Install dependencies for the current user (not system-wide)
|
|
|
|
|
15 |
RUN pip install --upgrade pip && \
|
16 |
+
pip install --no-cache-dir --user -r requirements.txt
|
17 |
+
|
18 |
+
# Add user base binary directory to PATH (for --user installs)
|
19 |
+
ENV PATH="$PATH:/home/user/.local/bin"
|
20 |
|
21 |
# Copy application code
|
22 |
COPY app.py .
|