-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mozart
committed
Jan 5, 2020
1 parent
b47176f
commit 7fb92a1
Showing
6 changed files
with
78 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.github/ | ||
|
||
.vscode/ | ||
|
||
assets/ | ||
|
||
README.md | ||
|
||
requirements.in | ||
|
||
Procfile | ||
|
||
**/*/_pycache__/ | ||
|
||
*.pyc | ||
|
||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ __pycache__ | |
|
||
venv | ||
|
||
.vscode | ||
.vscode | ||
|
||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM python:3.7 | ||
|
||
RUN apt update && apt install --yes ffmpeg | ||
|
||
ADD ./requirements.txt /app/requirements.txt | ||
|
||
RUN pip install -r /app/requirements.txt | ||
|
||
ADD ./xhaka /app/xhaka | ||
ADD ./uwsgi.ini /app | ||
|
||
RUN useradd -m xhaka | ||
RUN chown xhaka:xhaka /app | ||
WORKDIR /app | ||
|
||
USER xhaka | ||
|
||
ENV PORT=5000 | ||
CMD ["uwsgi", "uwsgi.ini" ] | ||
|
||
EXPOSE 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
[uwsgi] | ||
http-socket = :$(PORT) | ||
master = false | ||
master = true | ||
processes = 2 | ||
enable-threads = true | ||
threads = 16 | ||
threads = 4 | ||
die-on-term = true | ||
wsgi-file = xhaka/app.py | ||
callable = app | ||
memory-report = true | ||
vacuum = true | ||
need-app = true | ||
lazy = true | ||
stats = :9191 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters