File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 1
1
FROM python:3.13-slim-bookworm
2
2
3
+ # Configure operating system
3
4
ENV DEBIAN_FRONTEND=noninteractive
4
5
ENV TERM=linux
5
6
6
- # Install prerequisites
7
- RUN apt-get update
8
- RUN apt-get --yes install jq
9
-
10
- # Provide sources
7
+ # Provide package sources
11
8
COPY . /src
12
9
13
- # Install package
10
+ # Install package and dependencies
11
+ ENV UV_COMPILE_BYTECODE=true
12
+ ENV UV_NO_CACHE=true
13
+ ENV UV_PYTHON_DOWNLOADS=never
14
14
ENV UV_SYSTEM_PYTHON=true
15
15
RUN \
16
16
true \
17
+ # Install package.
17
18
&& pip install uv \
18
19
&& uv pip install /src \
19
- && uv pip uninstall uv
20
+ && uv pip uninstall uv \
21
+ # Install `jq`.
22
+ && apt-get update \
23
+ && apt-get install --no-install-recommends --no-install-suggests --yes jq \
24
+ # Tear down.
25
+ && apt-get autoremove --yes \
26
+ && apt-get autoclean --yes \
27
+ && rm -rf /var/lib/apt/lists/* \
28
+ && rm -rf /root/.cache \
29
+ && rm -rf /src \
30
+ && rm -rf /tmp/*
You can’t perform that action at this time.
0 commit comments