change where python installed
This commit is contained in:
@@ -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
|
||||
|
||||
4
start.sh
4
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user