Fix c&p dockerfile for running fastapi
All checks were successful
Build and Publish Docker Image / build (push) Successful in 50s
All checks were successful
Build and Publish Docker Image / build (push) Successful in 50s
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -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}"]
|
||||
|
||||
Reference in New Issue
Block a user