From eb6258211fb962600ad178eb68f2540ec1d90cf9 Mon Sep 17 00:00:00 2001 From: Jonas Braathen Date: Thu, 28 May 2026 23:47:32 +0200 Subject: [PATCH] Switch to alpine base image --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 096b59c..0c27572 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM ghcr.io/astral-sh/uv:python3.14-bookworm-slim +FROM ghcr.io/astral-sh/uv:python3.14-alpine # uv configuration: compile bytecode for faster startup, copy (not link) # packages out of the build cache, and keep the managed venv at /app/.venv. @@ -24,7 +24,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \ uv sync --locked --no-dev # Run unprivileged. -RUN useradd --system --no-create-home --uid 10001 appuser +RUN adduser -S -H -u 10001 appuser USER appuser # Bind to all interfaces inside the container