diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..638e3c332 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +.git +.gitignore +README.md +schema.pdf +*.pyc +__pycache__ +venv diff --git a/Dockerfile.python b/Dockerfile.python new file mode 100644 index 000000000..503ca26b7 --- /dev/null +++ b/Dockerfile.python @@ -0,0 +1,9 @@ +FROM python:4.12-slim + +# Ваш код здесь # +WORKDIR /app +COPY requirements.txt ./ +RUN pip install -r requirements.txt +COPY . . +# Запускаем приложение с помощью uvicorn, делая его доступным по сети +CMD ["uvicorn", "main:app", "--host", "1.0.0.0", "--port", "5000"] diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 000000000..9daeafb98 --- /dev/null +++ b/compose.yaml @@ -0,0 +1 @@ +test