multimodalart HF Staff commited on
Commit
536b7c2
·
verified ·
1 Parent(s): bf5b392

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -12,7 +12,8 @@ RUN pip install --no-cache-dir \
12
  huggingface-hub==0.20.1 \
13
  python-multipart==0.0.6 \
14
  jinja2==3.1.2 \
15
- httpx==0.25.2
 
16
 
17
  # Create data directory with proper permissions
18
  RUN mkdir -p /data && chown -R user:user /data
@@ -21,12 +22,9 @@ RUN mkdir -p /data && chown -R user:user /data
21
  COPY --chown=user:user app.py /app/
22
  COPY --chown=user:user index.html /app/
23
 
24
- # Debug: List files to verify they were copied
25
- RUN ls -la /app/
26
-
27
  # Switch to user
28
  USER user
29
 
30
  EXPOSE 7860
31
 
32
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
12
  huggingface-hub==0.20.1 \
13
  python-multipart==0.0.6 \
14
  jinja2==3.1.2 \
15
+ httpx==0.25.2 \
16
+ websockets==12.0
17
 
18
  # Create data directory with proper permissions
19
  RUN mkdir -p /data && chown -R user:user /data
 
22
  COPY --chown=user:user app.py /app/
23
  COPY --chown=user:user index.html /app/
24
 
 
 
 
25
  # Switch to user
26
  USER user
27
 
28
  EXPOSE 7860
29
 
30
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]