FROM cgr.dev/chainguard/wolfi-base:latest@sha256:0e09bcd548cf2dfb9a3fd40af1a7389aa8c16b428de4e8f72b085f015694ce3d AS builder COPY --from=ghcr.io/astral-sh/uv:latest@sha256:62022a082ce1358336b920e9b7746ac7c95b1b11473aa93ab5e4f01232d6712d \ /uv /uvx /usr/bin/ # skipcq: DOK-DL3018 RUN apk add --no-cache build-base git USER nonroot RUN --mount=type=cache,target=/root/.cache/uv \ uv tool install git+https://github.com/AlphaSphereDotAI/vocalizr FROM cgr.dev/chainguard/wolfi-base:latest@sha256:0e09bcd548cf2dfb9a3fd40af1a7389aa8c16b428de4e8f72b085f015694ce3d AS production ENV GRADIO_SERVER_PORT=7860 \ GRADIO_SERVER_NAME=0.0.0.0 \ HF_HOME=/home/nonroot/hf \ 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=755 /home/nonroot/.local/ /home/nonroot/.local/ EXPOSE ${GRADIO_SERVER_PORT} CMD ["vocalizr"]