diff --git a/docker/images/simulator.Dockerfile b/docker/images/simulator.Dockerfile index 33e5f018d..2f6feab3b 100644 --- a/docker/images/simulator.Dockerfile +++ b/docker/images/simulator.Dockerfile @@ -109,8 +109,7 @@ COPY --from=flamethrower-builder /app/flame /usr/local/bin/flame WORKDIR /app COPY --from=simulator-builder /app /app # Start the simulator. -ENV FLASK_ENV=development ENV FLASK_APP=sim.py ENV LC_ALL=C.UTF-8 ENV LANG=C.UTF-8 -CMD ["/app/venv/bin/python3", "-m", "flask", "run", "--host", "0.0.0.0" ] +CMD ["/app/venv/bin/python3", "-m", "gunicorn", "-w", "4", "-t", "60", "-b", "0.0.0.0:5000", "sim:app"] diff --git a/rakelib/init_deps/flask.in b/rakelib/init_deps/flask.in index e635204e6..40fb41be9 100644 --- a/rakelib/init_deps/flask.in +++ b/rakelib/init_deps/flask.in @@ -1,2 +1,3 @@ Flask requests +gunicorn