[add]: docker config

This commit is contained in:
VivianDee
2025-09-09 11:28:27 +01:00
parent 80cc543cdd
commit 00d89e460f
4 changed files with 40 additions and 4 deletions
+5 -2
View File
@@ -15,9 +15,12 @@ RUN pip install -r requirements.txt
RUN mkdir -p output/csv output/plots output/models
ENV FLASK_APP=wsgi.py
# ENV FLASK_APP=wsgi.py
ENV FLASK_APP=run.py
ENV FLASK_RUN_HOST=0.0.0.0
EXPOSE 8000
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "wsgi:wsgi_app"]
# CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "wsgi:wsgi_app"]
CMD ["uvicorn", "run:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]