File tree Expand file tree Collapse file tree 4 files changed +441
-39
lines changed
Expand file tree Collapse file tree 4 files changed +441
-39
lines changed Original file line number Diff line number Diff line change 1- FROM python:3.11-slim
2-
3- RUN pip install poetry --no-cache-dir
4-
5- RUN useradd --create-home beet-bot
6- WORKDIR /home/beet-bot
7- USER beet-bot
8-
9- COPY pyproject.toml poetry.toml ./
10- COPY runner_default ./runner_default
11- RUN poetry install
12-
13- RUN echo '{"pipeline": ["runner_default.bootstrap_environment"]}' \
14- | poetry run beet -p @beet/preset_stdin.yml
15-
16- ENTRYPOINT ["poetry" , "run" ]
1+ FROM python:3.14-slim
2+
3+ COPY --from=ghcr.io/astral-sh/uv:latest /uv
4+
5+ RUN useradd --create-home beet-bot
6+ WORKDIR /home/beet-bot
7+ USER beet-bot
8+
9+ # Do not copy uv.lock to let environment rebuilds upgrade to new versions
10+ COPY pyproject.toml ./
11+ COPY runner_default ./runner_default
12+ RUN uv sync
13+
14+ RUN echo '{"pipeline": ["runner_default.bootstrap_environment"]}' \
15+ | uv run beet -p @beet/preset_stdin.yml
16+
17+ ENTRYPOINT ["uv" , "run" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- [tool . poetry ]
1+ [project ]
22name = " runner-default"
3- version = " 0.0.0"
4- description = " Default runner environment for the beet bot."
5- authors = [
" Valentin Berlier <[email protected] >" ]
3+ version = " 0.1.0"
4+ description = " Default runner environment for the beet bot"
65
7- [tool .poetry .dependencies ]
8- python = " ^3.11"
9- Pillow = " *"
10- rich = " *"
11- beet = " *"
12- lectern = " *"
13- mecha = " *"
14- bolt = " *"
15- bolt-expressions = " *"
16- minecraft-text-components = " *"
17- wicked-expressions = " *"
18-
19- [tool .poetry .dev-dependencies ]
20-
21- [build-system ]
22- requires = [" poetry-core>=1.0.0" ]
23- build-backend = " poetry.core.masonry.api"
6+ requires-python = " >=3.14"
7+ dependencies = [
8+ " beet>=0.0.0b1" ,
9+ " lectern>=0.0.0b1" ,
10+ " mecha>=0.0.0b1" ,
11+ " bolt>=0.0.0b1" ,
12+ " rich>=14.2.0" ,
13+ ]
You can’t perform that action at this time.
0 commit comments