Skip to content
Draft
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
20 changes: 20 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.venv
__pycache__
*.pyc
*.pyo
*.pyd
.Python
.env
.git
.gitignore
node_modules
lib/
bin/
.vscode/
.lh
dist/
build/
*.egg-info/
.mypy_cache/
.pytest_cache/
htmlcov/
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM python:3.12-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt

COPY . .

ENV PYTHONPATH=/app/include

EXPOSE 8000

CMD ["python", "-m", "core.startup", "--host", "0.0.0.0", "--port", "8000"]
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
services:
web:
build: .
ports:
- "8000:8000"
volumes:
- .:/app
environment:
- PYTHONPATH=/app/include
7 changes: 7 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
starlette>=0.40.0
uvicorn[standard]>=0.30.0
pydantic>=2.0
sqlalchemy>=2.0
pyyaml>=6.0
python-seamless>=0.8.0
watchfiles>=0.21.0