File tree Expand file tree Collapse file tree 6 files changed +468
-62
lines changed
Expand file tree Collapse file tree 6 files changed +468
-62
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 /bin
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 src ./src
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 ]
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+ ]
2014
2115[build-system ]
22- requires = [" poetry-core>=1.0 .0" ]
23- build-backend = " poetry.core.masonry.api "
16+ requires = [" uv_build>=0.9.8,<0.10 .0" ]
17+ build-backend = " uv_build "
Original file line number Diff line number Diff line change 1- from beet import Context
2-
3- from .plugins import precompile_ast , prepare_vanilla_resources
4-
5-
6- def bootstrap_environment (ctx : Context ):
7- ctx .require (
8- precompile_ast ,
9- prepare_vanilla_resources ,
10- )
1+ from beet import Context
2+
3+ from .plugins import precompile_ast , prepare_vanilla_resources
4+
5+
6+ def bootstrap_environment (ctx : Context ):
7+ ctx .require (
8+ precompile_ast ,
9+ prepare_vanilla_resources ,
10+ )
Original file line number Diff line number Diff line change 1- from beet import Context
2- from beet .contrib .vanilla import Vanilla
3-
4-
5- def precompile_ast (ctx : Context ):
6- ctx .require (
7- "bolt" ,
8- # "bolt_expressions",
9- # "wicked_expressions",
10- "mecha" ,
11- )
12-
13-
14- def prepare_vanilla_resources (ctx : Context ):
15- ctx .inject (Vanilla ).mount ()
1+ from beet import Context
2+ from beet .contrib .vanilla import Vanilla
3+
4+
5+ def precompile_ast (ctx : Context ):
6+ ctx .require (
7+ "bolt" ,
8+ # "bolt_expressions",
9+ # "wicked_expressions",
10+ "mecha" ,
11+ )
12+
13+
14+ def prepare_vanilla_resources (ctx : Context ):
15+ ctx .inject (Vanilla ).mount ()
You can’t perform that action at this time.
0 commit comments