Skip to content

Commit e991eb7

Browse files
authored
Merge pull request #506 from ansforge/chore/security/fix-healthcheck-vulnerabilities
chore/security(healthcheck) : fix vulnerabilities
2 parents 7534d75 + 07024ae commit e991eb7

File tree

3 files changed

+40
-41
lines changed

3 files changed

+40
-41
lines changed

tools/healthcheck/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Python runtime as a parent image
2-
FROM python:3.11-slim
2+
FROM python:3.14-alpine
33

44
# Set environment variables
55
ENV PYTHONDONTWRITEBYTECODE=1 \
@@ -8,16 +8,15 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
88
UV_LINK_MODE=copy
99

1010
# Install system dependencies and uv
11-
RUN apt-get update && apt-get install -y \
11+
RUN apk add --no-cache \
1212
curl \
1313
ca-certificates \
14-
&& rm -rf /var/lib/apt/lists/* \
1514
&& curl -LsSf https://astral.sh/uv/install.sh | sh \
1615
&& mv /root/.local/bin/uv /usr/local/bin/uv \
1716
&& mv /root/.local/bin/uvx /usr/local/bin/uvx
1817

1918
# Create a non-root user and group
20-
RUN groupadd -r -g 1000 healthcheck && useradd -r -u 1000 -g healthcheck healthcheck
19+
RUN addgroup -g 1000 healthcheck && adduser -D -u 1000 -G healthcheck healthcheck
2120

2221
# Set the working directory in the container
2322
WORKDIR /app

tools/healthcheck/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
"prometheus-client==0.23.1",
1313
"prometheus-flask-exporter==0.23.2",
1414
"requests==2.32.5",
15-
"werkzeug==3.1.3",
15+
"werkzeug==3.1.5",
1616
]
1717

1818
[tool.coverage.run]

tools/healthcheck/uv.lock

Lines changed: 36 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)