add back python install(lock forces it) and instead change permissions of root uv folder.

This commit is contained in:
2026-01-03 13:29:01 -05:00
parent 6a9dbd7603
commit 1b8bd7b94f
2 changed files with 4 additions and 1 deletions

View File

@@ -68,6 +68,9 @@ WORKDIR /app/code/
# Install uv for the non-root user # Install uv for the non-root user
COPY --from=ghcr.io/astral-sh/uv:0.7.19 /uv /uvx /usr/local/bin/ COPY --from=ghcr.io/astral-sh/uv:0.7.19 /uv /uvx /usr/local/bin/
# Install Python
RUN uv python install 3.13
# Install Python dependencies # Install Python dependencies
RUN uv sync --all-extras RUN uv sync --all-extras

View File

@@ -5,7 +5,7 @@ mkdir -p /app/data/library /app/data/config /app/data/assets /app/data/resources
mkdir -p /tmp/vite-temp mkdir -p /tmp/vite-temp
# ensure that data directory is owned by 'cloudron' user # ensure that data directory is owned by 'cloudron' user
chown -R cloudron:cloudron /app/data /tmp/vite-temp chown -R cloudron:cloudron /app/data /tmp/vite-temp /root/.local/share/uv/python
cd /app/data cd /app/data