Skip to content

Commit 9c1067c

Browse files
committed
Switch to bookworm image in dockerfile
1 parent 42f2f03 commit 9c1067c

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use a Python image with uv pre-installed
2-
FROM ghcr.io/astral-sh/uv:python3.13-alpine
2+
FROM ghcr.io/astral-sh/uv:python3.12-bookworm
33

44
# This will be set by the GitHub action to the folder containing this component.
55
ARG FOLDER=/app

Dockerfile.dev

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use a Python image with uv pre-installed
2-
FROM ghcr.io/astral-sh/uv:python3.13-alpine
2+
FROM ghcr.io/astral-sh/uv:python3.12-bookworm
33

44
# This will be set by the GitHub action to the folder containing this component.
55
ARG FOLDER=/app
@@ -16,11 +16,15 @@ ENV UV_TOOL_BIN_DIR=/usr/local/bin
1616
# Place executables in the environment at the front of the path
1717
ENV PATH="$FOLDER/.venv/bin:$PATH"
1818

19-
# Install Node.js and nodemon for easy watch mode with Python
19+
# Fix uv + non-root environment
20+
ENV HOME=/tmp
21+
ENV XDG_DATA_HOME=/tmp/.local/share
22+
ENV XDG_CACHE_HOME=/tmp/.cache
23+
2024
USER root
21-
RUN apk update \
22-
&& apk add nodejs npm \
23-
&& npm install -g nodemon
25+
RUN apt-get update && apt-get install -y nodejs npm \
26+
&& npm install -g nodemon \
27+
&& rm -rf /var/lib/apt/lists/*
2428

2529
# Allow uv to use cache
2630
RUN mkdir -p /.cache/uv && chown 1000:1000 /.cache /.cache/uv

0 commit comments

Comments
 (0)