File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
55ARG FOLDER=/app
Original file line number Diff line number Diff line change 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.
55ARG 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
1717ENV 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+
2024USER 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
2630RUN mkdir -p /.cache/uv && chown 1000:1000 /.cache /.cache/uv
You can’t perform that action at this time.
0 commit comments