Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Allow setting http port #9

Merged
merged 1 commit into from
Jul 29, 2022
Merged
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
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ VOLUME ["/data"]
ENV STORAGE_PATH='/data'
ENV JWT_SECRET_KEY='PLEASE_CHANGE_ME'
ENV DEBUG='False'
ENV HTTP_PORT=80

RUN pip3 install -r requirements.txt && rm requirements.txt
RUN chmod u+x ./entrypoint.sh
Expand All @@ -23,7 +24,5 @@ RUN chmod u+x ./entrypoint.sh
RUN apt-get autoremove --yes gcc g++ libffi-dev \
&& rm -rf /var/lib/apt/lists/*

EXPOSE 80

CMD ["wsgi.ini"]
ENTRYPOINT ["./entrypoint.sh"]
4 changes: 2 additions & 2 deletions wsgi.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[uwsgi]
wsgi-file = wsgi.py
callable = app
http = 0.0.0.0:80
http = 0.0.0.0:$(HTTP_PORT)
socket = 0.0.0.0:5000
processes = 1
threads = 1
master = true
chmod-socket = 664
vacuum = true
die-on-term = true
die-on-term = true