Spaces:
Runtime error
Runtime error
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:898e4f30d920607c58acc01eabdfc9ac0725fb83b780d695542b3c3a3d265e48 AS builder | |
COPY --from=ghcr.io/astral-sh/uv:latest@sha256:4de5495181a281bc744845b9579acf7b221d6791f99bcc211b9ec13f417c2853 \ | |
/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:898e4f30d920607c58acc01eabdfc9ac0725fb83b780d695542b3c3a3d265e48 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"] | |