Mohansai2004 commited on
Commit
c8547b4
·
1 Parent(s): 5f041a3

fixed the docker

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -25,9 +25,11 @@ COPY --chown=appuser:appuser README.md ./
25
  USER appuser
26
 
27
  # Install dependencies with verbose output and error handling
 
28
  RUN pip install --no-cache-dir --upgrade pip && \
29
  pip install --no-cache-dir --verbose torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \
30
- pip install --no-cache-dir -r requirements.txt
 
31
 
32
  # Expose port for uvicorn
33
  EXPOSE 8000
 
25
  USER appuser
26
 
27
  # Install dependencies with verbose output and error handling
28
+ ENV PATH="/home/appuser/.local/bin:${PATH}"
29
  RUN pip install --no-cache-dir --upgrade pip && \
30
  pip install --no-cache-dir --verbose torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu && \
31
+ pip install --no-cache-dir -r requirements.txt && \
32
+ pip install --no-cache-dir uvicorn
33
 
34
  # Expose port for uvicorn
35
  EXPOSE 8000