Skip to content
Open

test #10

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.git
.gitignore
README.md
schema.pdf
*.pyc
__pycache__
venv
9 changes: 9 additions & 0 deletions Dockerfile.python
Original file line number Diff line number Diff line change
@@ -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"]
1 change: 1 addition & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test