UPDATE
This commit is contained in:
@@ -11,11 +11,12 @@ WORKDIR /app
|
|||||||
|
|
||||||
# Install dependencies first (cached layer as long as lockfile doesn't change)
|
# Install dependencies first (cached layer as long as lockfile doesn't change)
|
||||||
COPY pyproject.toml uv.lock ./
|
COPY pyproject.toml uv.lock ./
|
||||||
RUN uv lock
|
RUN uv lock --upgrade
|
||||||
RUN uv sync --locked --no-install-project --no-editable
|
RUN uv sync --locked --no-install-project --no-editable
|
||||||
|
|
||||||
# Copy the rest of the project and install it
|
# Copy the rest of the project and install it
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN uv lock
|
||||||
RUN uv sync --locked --no-editable
|
RUN uv sync --locked --no-editable
|
||||||
|
|
||||||
# --- Final stage: no uv, no build artifacts ---
|
# --- Final stage: no uv, no build artifacts ---
|
||||||
|
|||||||
Reference in New Issue
Block a user