-
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.
- Change URL of dependent services to env variables instead - Allow host names and ports to be specified dynamically on container creation - Update requirements.txt with full list of packages - Add Dockerfile - Add API to docker-compose.yml as a new service
- Loading branch information
1 parent
2e3b78d
commit 9fa9867
Showing
4 changed files
with
32 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# docker build -t evs-front-api . | ||
FROM python:3.9-alpine3.12 | ||
|
||
COPY app.py requirements.txt demo.json ./ | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
EXPOSE 8080 | ||
CMD ["gunicorn", "-b", "0.0.0.0:8080", "app: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
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,2 +1,4 @@ | ||
flask | ||
flask-cors | ||
gunicorn | ||
requests |
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