python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Running gunicorn from dockerfile not working, but not showing in interactive bash
In this dockerfile, we have:
EXPOSE 5000
RUN gunicorn --bind 0.0.0.0:5000
RUN /usr/sbin/nginx
However, when I do from docker running image:
root@594ac39e8115:/# ps -x
I get
PID TTY STAT TIME ...
An old man in the sea.
Votes: 0
Answers: 0
Bypass gunicorn worker timeout for specific endpoint
I have Django (3.2.4) app running on Gunicorn (20.1.0) and that app have one heavy endpoint. This endpoint returns csv report which may be very big:
def _stream_serialized_data():
paginator = Pagi...
Alexey Kholodkov
Votes: 0
Answers: 0
Dockerfile for a fastAPI app using Factory pattern with unicorn
I am building a back-end service for a full-stack application using fastAPI and unicorn.
src/asgi.py
import uvicorn
from src import create_app
app = create_app()
if __name__ == "__main__":...
Pierre-Alexandre
Votes: 0
Answers: 1