mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 09:39:56 +00:00
🔧 Disable threading in flask debug server
For educational purposes, the RNG service is meant to process only one request at a time (without concurrency). But the flask server now defaults to a multi-threaded implementation, which defeats our original purpose. So here we disable threading to restore the original behavior.
This commit is contained in:
@@ -3,5 +3,5 @@ WORKDIR /app
|
||||
RUN pip install Flask
|
||||
COPY rng.py .
|
||||
ENV FLASK_APP=rng FLASK_RUN_HOST=:: FLASK_RUN_PORT=80
|
||||
CMD ["flask", "run"]
|
||||
CMD ["flask", "run", "--without-threads"]
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user