dragxd commited on
Commit
ece52dd
·
verified ·
1 Parent(s): c8e3740

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -11,11 +11,12 @@ RUN apt-get update && \
11
  # Install Python dependencies
12
  COPY requirements.txt .
13
 
14
- # Create venv and install dependencies
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 .