diff --git a/Dockerfile b/Dockerfile index 39518e7..ebef189 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/start.sh b/start.sh index ec2f89d..46ac587 100755 --- a/start.sh +++ b/start.sh @@ -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