Merge branch '82-uv'
build_latest / build (push) Has been cancelled

This commit is contained in:
2025-03-19 11:17:52 -04:00
40 changed files with 913 additions and 124 deletions
+8 -12
View File
@@ -3,17 +3,13 @@ FROM python:3.13.2-slim
# install dependencies
RUN apt-get update && apt-get -y upgrade && apt-get -y install git sqlite3
# install uv
COPY --from=ghcr.io/astral-sh/uv:0.6.5 /uv /uvx /bin/
COPY . /home
# Sync the project into a new environment, using the frozen lockfile
WORKDIR /home
RUN uv sync --frozen --no-dev
COPY DakinySettings.py DakinySettings.py
COPY main.py main.py
COPY utils.py utils.py
COPY pyproject.toml pyproject.toml
COPY classes classes/
COPY cogs cogs/
COPY database_setup database_setup/
RUN pip install --upgrade pip && pip install poetry==1.8.3 && poetry export -f requirements.txt --output requirements.txt && pip install -r requirements.txt
CMD ["python3", "-u", "./main.py"]
CMD ["uv", "run", "--frozen", "--no-dev", "-m", "dakiny_bot"]