Littendekitten commited on
Commit
ff7867c
·
verified ·
1 Parent(s): fb2a7e8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,12 +1,14 @@
1
  FROM python:3.9
2
 
 
 
 
3
  WORKDIR /code
4
 
5
  COPY ./requirements.txt /code/requirements.txt
6
-
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  COPY . .
10
 
11
- # Start de Gradio app rechtstreeks met Python
12
- CMD ["python", "app.py"]
 
1
  FROM python:3.9
2
 
3
+ # Zorgt ervoor dat Python logs direct op je scherm verschijnen (geen buffering)
4
+ ENV PYTHONUNBUFFERED=1
5
+
6
  WORKDIR /code
7
 
8
  COPY ./requirements.txt /code/requirements.txt
 
9
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
10
 
11
  COPY . .
12
 
13
+ # Start de FastAPI app direct met Uvicorn (de gouden standaard voor Hugging Face)
14
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]