File tree Expand file tree Collapse file tree 3 files changed +40
-41
lines changed
Expand file tree Collapse file tree 3 files changed +40
-41
lines changed Original file line number Diff line number Diff line change 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
55ENV 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
2322WORKDIR /app
Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments