Skip to content

Commit 781f770

Browse files
committed
OCI: Improve build efficiency, reduce from 0m33s to 0m22s, using uv
time docker build -t grafana-wtf:dev .
1 parent 04774d8 commit 781f770

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ RUN apt-get update
88
RUN apt-get --yes install jq
99

1010
# Provide sources
11-
COPY . /app
11+
COPY . /src
1212

1313
# Install package
14-
WORKDIR /app
15-
RUN pip install --prefer-binary .
14+
ENV UV_SYSTEM_PYTHON=true
15+
RUN \
16+
true \
17+
&& pip install uv \
18+
&& uv pip install /src \
19+
&& uv pip uninstall uv

0 commit comments

Comments
 (0)