Skip to content

Commit 07024ae

Browse files
author
Issam Kadar
committed
chore/security : change image python to last alpine version
1 parent 18d838e commit 07024ae

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
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

0 commit comments

Comments
 (0)