Skip to content

Commit

Permalink
- template for development secrets.
Browse files Browse the repository at this point in the history
  • Loading branch information
djongepier committed Jan 13, 2023
1 parent 63619c0 commit bfe4b0f
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .Dockerignore

This file was deleted.

8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
venv
alembic
alembic.ini
.secrets.json
.gitignore
.git
__pycache__
*.md
8 changes: 8 additions & 0 deletions .secrets.json.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"contacts_database_host": "",
"contacts_database_port": "",
"contacts_database_db": "",
"contacts_database_user": "",
"contacts_database_password": "",
"contacts_api_key": ""
}
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Docker buildfile for contacts-api
FROM python:3.10-alpine3.17

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY . /code

CMD ["uvicorn", "main:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "80"]
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ py-postgresql==1.2.2
pydantic==1.10.4
sniffio==1.3.0
SQLAlchemy==1.4.46
starlette==0.23.1
starlette==0.22.0
typing_extensions==4.4.0
uvicorn==0.20.0

0 comments on commit bfe4b0f

Please sign in to comment.