Spaces:
Runtime error
Runtime error
| FROM cgr.dev/chainguard/wolfi-base:latest@sha256:3e3a125c18346ee7b95980be96529d39eb9f799e140aab2b02218a1bd67bfb18 AS builder | |
| COPY --from=ghcr.io/astral-sh/uv:latest@sha256:9874eb7afe5ca16c363fe80b294fe700e460df29a55532bbfea234a0f12eddb1 \ | |
| /uv /uvx /usr/bin/ | |
| USER nonroot | |
| RUN --mount=type=cache,target=/root/.cache/uv \ | |
| uv tool install chattr | |
| FROM cgr.dev/chainguard/wolfi-base:latest@sha256:3e3a125c18346ee7b95980be96529d39eb9f799e140aab2b02218a1bd67bfb18 AS production | |
| ENV GRADIO_SERVER_PORT=7860 \ | |
| GRADIO_SERVER_NAME=0.0.0.0 \ | |
| FASTEMBED_CACHE_PATH=/home/nonroot/fastembed \ | |
| PATH=/home/nonroot/.local/bin:$PATH | |
| # skipcq: DOK-DL3018 | |
| RUN apk add --no-cache curl libstdc++ | |
| USER nonroot | |
| WORKDIR /home/nonroot | |
| COPY --from=builder --chown=nonroot:nonroot --chmod=555 /home/nonroot/.local/ /home/nonroot/.local/ | |
| EXPOSE ${GRADIO_SERVER_PORT} | |
| CMD ["chattr"] | |