Skip to content
Closed
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
15 changes: 15 additions & 0 deletions .idea/coronavirus-tracker-api.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.7-stretch

WORKDIR /usr/src/app

RUN apt-get update

COPY requirements.txt ./
RUN pip install --upgrade pip
RUN pip install --force-reinstall --ignore-installed -r requirements.txt
COPY app ./app
COPY coronavirus-tracker-api-swagger.yaml ./
COPY uwsgi.ini ./
COPY main.py ./

EXPOSE 5000

CMD ["uwsgi", "uwsgi.ini"]
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ test:

lint:
pylint $(APP) || true

# building and running container (if somebody decides to deploy this one)
.PHONY: build
build:
docker build -t covid-api . && docker run --name covid-api -p 5000:5000 covid-api

.PHONY: clean
clean:
docker stop covid-api
docker rm -f covid-api
docker rmi -f covid-api
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ flask = "*"
python-dotenv = "*"
requests = "*"
gunicorn = "*"
uWSGI = "*"
flask-cors = "*"
cachetools = "*"
python-dateutil = "*"
Expand Down
Loading