install uv to correct dir

This commit is contained in:
Georges-Antoine Assi
2025-07-04 10:03:44 -04:00
parent e8f8f1621c
commit 543238fb40
2 changed files with 3 additions and 6 deletions

View File

@@ -63,16 +63,13 @@ RUN npm install
WORKDIR /app
# Install uv for the non-root user
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
# Make uv available to all users
ENV PATH="/usr/local/bin:$HOME/.local/bin:${PATH}"
RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh
# Copy project files (including pyproject.toml and uv.lock)
COPY pyproject.toml uv.lock* .python-version /app/
# Install Python and project dependencies
RUN uv install python 3.13
RUN uv python install 3.13
RUN uv sync --all-extras
# Copy entrypoint script

View File

@@ -40,7 +40,7 @@ RUN apk add --no-cache \
mariadb-connector-c-dev \
musl-dev
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh
WORKDIR /src