We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c39abee commit 5b01979Copy full SHA for 5b01979
3 files changed
.dockerignore
@@ -0,0 +1,5 @@
1
+.gitignore
2
+README.md
3
+.github
4
+.travis.yml
5
+.env.example
Dockerfile
@@ -0,0 +1,17 @@
+FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
+
+# ENVS RECOMENDATIONS
+ENV PYTHONDONTWRITEBYTECODE 1
+ENV PYTHONUNBUFFERED 1
6
7
+# PREPARE FOLDER
8
+WORKDIR /api
9
10
+# COPY DEPENDENCIES
11
+COPY requirements.txt ./
12
13
+# INSTALL DEPENDENCIES
14
+RUN pip install -r requirements.txt
15
16
+# COPY PROJECT
17
+COPY . /
docker-compose.yml
@@ -0,0 +1,14 @@
+version: '3.7'
+services:
+ api:
+ build: .
+ image: expdev07/coronavirus-tracker-api:2.0
+ restart: always
+ command: uvicorn --host 0.0.0.0 app.main:APP
+ volumes:
+ - .:/api
+ ports:
+ - "8000:8000"
+ stdin_open: true
+ tty: true
0 commit comments