1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-05 21:45:25 +02:00

rebuild dockerfile and startup.py

This commit is contained in:
Hayden 2021-01-01 22:33:19 -09:00
parent 67fc88aaff
commit 10199d71a5
4 changed files with 52 additions and 7 deletions

View file

@ -5,7 +5,7 @@ RUN npm install
COPY ./frontend/ .
RUN npm run build
FROM python:3
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8
RUN apt-get update -y && \
apt-get install -y python-pip python-dev
@ -21,6 +21,4 @@ COPY ./mealie /app
COPY --from=build-stage /app/dist /app/dist
ENTRYPOINT [ "python" ]
# TODO Reconfigure Command to start a Gunicorn Server that managed the Uvicorn Server. Also Learn how to do that :-/
CMD [ "app.py" ]
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "9000"]