File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed
Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ .gitignore
2+ README.md
3+ .github
4+ .travis.yml
5+ .env.example
Original file line number Diff line number Diff line change 1+ FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
2+
3+ # ENVS RECOMENDATIONS
4+ ENV PYTHONDONTWRITEBYTECODE 1
5+ 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 . /
Original file line number Diff line number Diff line change 1+ version : ' 3.7'
2+
3+ services :
4+ api :
5+ build : .
6+ image : expdev07/coronavirus-tracker-api:2.0
7+ restart : always
8+ command : uvicorn --host 0.0.0.0 app.main:APP
9+ volumes :
10+ - .:/api
11+ ports :
12+ - " 8000:8000"
13+ stdin_open : true
14+ tty : true
You can’t perform that action at this time.
0 commit comments