Soumik Bose commited on
Commit
f2f61e3
·
1 Parent(s): 084ea47
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -3,7 +3,8 @@ FROM python:3.10-slim
3
  ENV PYTHONDONTWRITEBYTECODE=1 \
4
  PYTHONUNBUFFERED=1 \
5
  PORT=7860 \
6
- HF_HOME=/app/cache
 
7
 
8
  WORKDIR /app
9
 
@@ -27,4 +28,4 @@ RUN pip install --no-cache-dir -r requirements.txt
27
  COPY --chown=user:user main.py .
28
 
29
  EXPOSE 7860
30
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
3
  ENV PYTHONDONTWRITEBYTECODE=1 \
4
  PYTHONUNBUFFERED=1 \
5
  PORT=7860 \
6
+ HF_HOME=/app/cache \
7
+ PATH="/home/user/.local/bin:${PATH}"
8
 
9
  WORKDIR /app
10
 
 
28
  COPY --chown=user:user main.py .
29
 
30
  EXPOSE 7860
31
+ CMD ["python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]