Disable the gunicorn control socket in the Docker image
Gunicorn 25.1+ creates a control socket under $HOME/.gunicorn, which fails in the read-only container without a home directory and logs "Control server error". The socket is not used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2e40c0ff47
commit
c72bc8c6af
1 file changed
+1
-1
+1
-1
@@ -39,4 +39,4 @@ RUN python -m compileall -q max
|
||||
USER max
|
||||
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
||||
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:8000", "max.app:app"]
|
||||
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:8000", "--no-control-socket", "max.app:app"]
|
||||
Reference in new issue
Block a user