nmwafiy commited on
Commit
e7ddec9
·
verified ·
1 Parent(s): 553adbb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /code
4
 
5
- # Install system dependencies needed for some NLP packages
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  && rm -rf /var/lib/apt/lists/*
@@ -12,5 +12,5 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
  COPY . .
14
 
15
- # Hugging Face Spaces usually run on port 7860
16
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /code
4
 
5
+ # Install system dependencies for NLP
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  && rm -rf /var/lib/apt/lists/*
 
12
 
13
  COPY . .
14
 
15
+ # Ensure the container listens on port 7860
16
+ CMD ["python", "app.py"]