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:
parent
67fc88aaff
commit
10199d71a5
4 changed files with 52 additions and 7 deletions
|
@ -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"]
|
Loading…
Add table
Add a link
Reference in a new issue