migrate to docker

This commit is contained in:
hhh
2025-01-21 00:24:19 +02:00
parent e4d38868b7
commit 14b183fe3a
19 changed files with 175 additions and 114 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM ghcr.io/astral-sh/uv:python3.12-alpine
WORKDIR /app
COPY pyproject.toml uv.lock ./
COPY lib ./lib
RUN uv sync --frozen
ENV PATH="/app/.venv/bin:$PATH"
COPY . /app/src
WORKDIR /app/src
CMD ["python3", "-m", "bot"]