AlphaSphereDotAI/Chattr
0
1FROM cgr.dev/chainguard/wolfi-base:latest@sha256:17ab0709456ce1a2aedd85e95f72e58d73133bb70c33ae945a4d4b2424e984f1 AS builder2 3ARG INSTALL_SOURCE4ARG PYTHON_VERSION5 6# skipcq: DOK-DL30187RUN apk add --no-cache build-base git uv8 9USER nonroot10 11RUN --mount=type=cache,target=/root/.cache/uv \12 uv tool install ${INSTALL_SOURCE} --python ${PYTHON_VERSION}13 14FROM cgr.dev/chainguard/wolfi-base:latest@sha256:17ab0709456ce1a2aedd85e95f72e58d73133bb70c33ae945a4d4b2424e984f1 AS production15 16ENV GRADIO_SERVER_PORT=7860 \17 GRADIO_SERVER_NAME=0.0.0.0 \18 FASTEMBED_CACHE_PATH=/home/nonroot/fastembed \19 PATH=/home/nonroot/.local/bin:$PATH20 21# skipcq: DOK-DL301822RUN apk add --no-cache curl libstdc++23 24USER nonroot25 26WORKDIR /home/nonroot27 28COPY --from=builder --chown=nonroot:nonroot --chmod=555 /home/nonroot/.local/ /home/nonroot/.local/29 30EXPOSE ${GRADIO_SERVER_PORT}31 32CMD ["chattr"]33 