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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN pip install -r requirements.txt
COPY . /app

EXPOSE 5000
CMD ["python", "webhooks.py"]
CMD ["gunicorn", "--bind=0.0.0.0:5000", "--workers=3", "wsgi"]
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Flask==0.12.2
ipaddress==1.0.18
requests==2.18.2
gunicorn==19.9.0
4 changes: 2 additions & 2 deletions webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# under the License.

import logging
from sys import stderr, hexversion
logging.basicConfig(stream=stderr)
from sys import stdout, hexversion
logging.basicConfig(stream=stdout, level=logging.INFO)

import hmac
from hashlib import sha1
Expand Down
4 changes: 4 additions & 0 deletions wsgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from webhooks import application

if __name__ == "__main__":
application.run(debug=False, host='0.0.0.0')