Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ COPY . /app/

RUN pip install -r /app/requirements.txt

EXPOSE 8000
EXPOSE 5000

ENTRYPOINT ["/usr/bin/env", "python3", "/app/controller.py"]
USER nobody

ENTRYPOINT ["/usr/bin/env", "uwsgi", "--http", ":5000", "--ini", "uwsgi.ini"]
CMD ["--processes", "2", "--threads", "2"]
4 changes: 4 additions & 0 deletions uwsgi.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[uwsgi]
wsgi-file = controller.py
callable = app
master = true