Skip to content

Commit

Permalink
[#1560] simulator gunicorn deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
pzadroga committed Nov 27, 2024
1 parent 9ea1c0c commit 7e9d663
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions docker/images/simulator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
1 change: 1 addition & 0 deletions rakelib/init_deps/flask.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Flask
requests
gunicorn

0 comments on commit 7e9d663

Please sign in to comment.