Fix c&p dockerfile for running fastapi
All checks were successful
Build and Publish Docker Image / build (push) Successful in 50s

This commit is contained in:
2024-11-11 10:59:06 +13:00
parent 6abc9807c3
commit 9fed90d9fe
3 changed files with 488 additions and 12 deletions

View File

@@ -46,12 +46,4 @@ ARG PORT=8080
ENV PORT=$PORT
EXPOSE $PORT
CMD ["sh", "-c", \
"exec gunicorn --preload \
--bind 0.0.0.0:${PORT} \
--workers 2 \
--threads 2 \
--worker-tmp-dir /dev/shm \
--access-logfile - \
--forwarded-allow-ips '*' \
app:app"]
CMD ["sh", "-c", "exec fastapi run app.py --proxy-headers --port ${PORT}"]