Skip to content

Commit 29a5982

Browse files
committed
fix: upgrade pip, uv and zlib versions in Dockerfile.api. (hopefully fixing CVE-2026-32767, CVE-2026-22184, CVE-2026-27171, CVE-2026-32778 and CVE-2026-32777)
1 parent 818a1fe commit 29a5982

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

docker/Dockerfile.api

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY pyproject.toml uv.lock ./
1515
COPY middleware ./middleware
1616

1717
# Upgrade pip and install uv
18-
RUN pip install --no-cache-dir --upgrade pip==25.3 uv==0.9.27
18+
RUN pip install --no-cache-dir --upgrade pip==26.0.1 uv==0.11.2
1919

2020
# Build wheels
2121
RUN uv build --package shared --wheel && \
@@ -31,12 +31,12 @@ RUN apk add --no-cache \
3131
python3-dev=3.12.12-r0 \
3232
libffi-dev=3.5.2-r0 \
3333
openssl-dev=3.5.5-r0 \
34-
cargo=1.91.1-r0
34+
cargo=1.91.1-r1
3535

3636
WORKDIR /build
3737

3838
# Install uv and PyInstaller
39-
RUN pip install --no-cache-dir --upgrade pip==25.3 uv==0.9.27
39+
RUN pip install --no-cache-dir --upgrade pip==26.0.1 uv==0.11.2
4040

4141
# Copy built wheel from package-builder stage
4242
COPY --from=package-builder /build/dist/*.whl /tmp/wheels/
@@ -97,7 +97,11 @@ ENV UVICORN_PORT=8000
9797
ENV UVICORN_LOG_LEVEL=info
9898

9999
# Create non-root user and group and fix permissions
100-
RUN apk add --no-cache curl=8.17.0-r1 git=2.52.0-r0 tzdata && \
100+
RUN apk add --no-cache --upgrade \
101+
curl=8.17.0-r1 \
102+
git=2.52.0-r0 \
103+
zlib=1.3.2-r0 \
104+
tzdata && \
101105
addgroup -S middleware && \
102106
adduser -S -H -G middleware middleware && \
103107
chown middleware:middleware /api

0 commit comments

Comments
 (0)