Commit existing codebase
This commit is contained in:
commit
49bc902bb9
24 changed files with 1208 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM python:3.9.2-slim
|
||||
|
||||
EXPOSE 8000
|
||||
WORKDIR /app
|
||||
|
||||
COPY poetry.lock pyproject.toml ./
|
||||
RUN pip install poetry==1.1 && \
|
||||
poetry config virtualenvs.in-project true && \
|
||||
poetry install --no-dev
|
||||
|
||||
COPY . ./
|
||||
|
||||
CMD poetry run alembic upgrade head && \
|
||||
poetry run uvicorn --host=0.0.0.0 app.main:app
|
||||
Loading…
Add table
Add a link
Reference in a new issue