-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ab-smith/swagger
Swagger
- Loading branch information
Showing
5 changed files
with
89 additions
and
52 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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
FROM python:alpine3.10 | ||
MAINTAINER Abderrahmane SMIMITE | ||
|
||
RUN apk add build-base openssl-dev libffi-dev vim | ||
RUN pip install cffi cryptography flask | ||
RUN apk add build-base openssl-dev libffi-dev vim py-gunicorn | ||
|
||
RUN mkdir /app | ||
COPY requirements.txt /app | ||
COPY app.py /app | ||
COPY wsgi.py /app | ||
COPY start.sh /app | ||
WORKDIR /app | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
EXPOSE 5000 | ||
|
||
CMD ["python3", "app.py"] | ||
CMD ["/app/start.sh"] |
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,3 +1,5 @@ | ||
cffi==1.12.3 | ||
cryptography==2.6.1 | ||
Flask==1.0.2 | ||
flask_restplus==0.12.1 | ||
cryptography==2.6.1 | ||
cffi==1.12.3 | ||
gunicorn==19.9.0 |
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,3 @@ | ||
#!/usr/bin/env ash | ||
cd /app | ||
gunicorn --bind 0.0.0.0:5000 wsgi:flask_app |
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,4 @@ | ||
from app import flask_app | ||
|
||
if __name__ == "__main__": | ||
flask_app.run() |