change where python installed

This commit is contained in:
2026-01-03 13:38:32 -05:00
parent 1b8bd7b94f
commit 21de7b0121
2 changed files with 4 additions and 4 deletions

View File

@@ -62,14 +62,14 @@ RUN rm -rf /tmp/RALibretro
# Install frontend dependencies
WORKDIR /app/code/frontend
RUN npm install
RUN ln -s /tmp/vite-temp /app/code/frontend/node_modules/.vite-temp
RUN ln -s /tmp/vite-temp /app/code/frontend/node_modules/.vite-temp && ln -s /tmp/vite /app/code/frontend/node_modules/.vite
WORKDIR /app/code/
# Install uv for the non-root user
COPY --from=ghcr.io/astral-sh/uv:0.7.19 /uv /uvx /usr/local/bin/
# Install Python
RUN uv python install 3.13
RUN mkdir /app/code/uv && uv python install 3.13 --home /app/code/uv
# Install Python dependencies
RUN uv sync --all-extras

View File

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