Commit existing codebase

This commit is contained in:
Andrey Chervyakov 2021-02-25 01:39:14 +06:00
commit 49bc902bb9
24 changed files with 1208 additions and 0 deletions

14
Dockerfile Normal file
View 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