Fix dockerfile

This commit is contained in:
PAVEL PALMA
2026-02-25 02:14:40 -06:00
parent 1eae63394b
commit 3d526b903f

View File

@@ -11,6 +11,7 @@ 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 --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
@@ -23,6 +24,7 @@ FROM quay.ocp.banorte.com/golden/python-312:latest
WORKDIR /app WORKDIR /app
COPY --from=builder /app/.venv /app/.venv COPY --from=builder /app/.venv /app/.venv
COPY --from=builder /app /app
COPY config.yaml ./ COPY config.yaml ./
ENV PATH="/app/.venv/bin:$PATH" ENV PATH="/app/.venv/bin:$PATH"