switched to uv and gitea-actions-based pipeline
All checks were successful
Build container / Build (pull_request) Successful in 43s

This commit is contained in:
2025-07-29 14:28:07 +02:00
parent b12eb62b41
commit 29d951427d
18 changed files with 279 additions and 194 deletions

View File

@@ -1,17 +1,14 @@
FROM python:3-slim
ENV DOCKERIZED=true
ARG BOT_VERSION
# set at build time
ENV BOT_VERSION=$BOT_VERSION
FROM docker.io/python:3.13-alpine
# use the latest version of uv, independently of the python version
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /app
RUN pip install pipenv
# copy the requirements and install them
COPY pyproject.toml uv.lock .
RUN uv sync --frozen
COPY Pipfile Pipfile.lock ./
RUN pipenv install --system --deploy
# copy the rest of the code
COPY bot .
CMD ["python", "main.py"]
CMD ["uv", "run", "main.py"]