Skip to content

Commit

Permalink
feat: pin uv version
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 5, 2024
1 parent 9f19aef commit f96142c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@
"datasourceTemplate": "pypi",
"versioningTemplate": "pep440"
},
{
"customType": "regex",
"fileMatch": [
"^Dockerfile$"
],
"matchStrings": [
"ENV UV_VERSION=(?<currentValue>.*?)\\n"
],
"depNameTemplate": "uv",
"datasourceTemplate": "pypi",
"versioningTemplate": "pep440"
},
{
"customType": "regex",
"fileMatch": [
Expand Down
4 changes: 3 additions & 1 deletion base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
FROM python:3.12.7-slim-bookworm
ARG TARGETARCH

ENV UV_VERSION=0.4.30

LABEL name="Weblate Base"
LABEL maintainer="Michal Čihař <[email protected]>"
LABEL org.opencontainers.image.url="https://weblate.org/"
Expand Down Expand Up @@ -80,5 +82,5 @@ RUN \
&& apt-get update \
&& apt-get install --no-install-recommends -y postgresql-client-17 \
&& apt-get clean \
&& curl -LsSf https://astral.sh/uv/install.sh | sh \
&& curl -LsSf https://astral.sh/uv/$UV_VERSION/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh \
&& rm -rf /root/.cache /tmp/* /var/lib/apt/lists/*

0 comments on commit f96142c

Please sign in to comment.