Skip to content
Merged
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
34 changes: 34 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Keeps the build context small — the Dockerfile only COPYs pyproject.toml,
# uv.lock, and src/, so everything below is unnecessary to send to the daemon.

# Virtual environment (by far the largest item)
.venv/

# Git
.git/
.github/
.gitignore

# Secrets / local env (never bake into the image)
.env

# Python caches and bytecode
__pycache__/
*.py[cod]
.pytest_cache/
.ruff_cache/
.mypy_cache/

# Tests, test data, and evals — the bot reads ingested content from Postgres,
# and ingestion runs from the host, so none of these are needed in the image.
tests/
data/
evals/

# Coverage reports
.coverage
htmlcov/

# Local tickets (git-excluded) and editor/OS cruft
.vscode/
.DS_Store
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
WORKDIR /app
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-install-project
COPY src/ ./src/
CMD ["uv", "run", "python", "-m", "src.apps.discord_bot"]
Loading