[O] Dockerize

This commit is contained in:
2026-03-13 21:55:07 -04:00
parent 30e231e94e
commit 0293bdd523
3 changed files with 58 additions and 3 deletions
+24
View File
@@ -0,0 +1,24 @@
FROM python:3.13-slim
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
WORKDIR /app
# Enable bytecode compilation
ENV UV_COMPILE_BYTECODE=1
# Copy project requirements
COPY pyproject.toml uv.lock ./
# Install dependencies (but not the project yet)
RUN uv sync --frozen --no-install-project
# Copy the application code
COPY . .
# Install the project
RUN uv sync --frozen
# Start using uv run
CMD ["uv", "run", "python", "src/bot.py"]