change where python installed
This commit is contained in:
@@ -62,14 +62,14 @@ RUN rm -rf /tmp/RALibretro
|
|||||||
# Install frontend dependencies
|
# Install frontend dependencies
|
||||||
WORKDIR /app/code/frontend
|
WORKDIR /app/code/frontend
|
||||||
RUN npm install
|
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/
|
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
|
# 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
|
# Install Python dependencies
|
||||||
RUN uv sync --all-extras
|
RUN uv sync --all-extras
|
||||||
|
|||||||
4
start.sh
4
start.sh
@@ -2,10 +2,10 @@
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
mkdir -p /app/data/library /app/data/config /app/data/assets /app/data/resources
|
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
|
# 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
|
cd /app/data
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user