Vocalizr / Dockerfile
MH0386's picture
Upload folder using huggingface_hub
2fb8146 verified
raw
history blame
966 Bytes
FROM cgr.dev/chainguard/wolfi-base:latest@sha256:3a4709d9dfc2cf8f1d78ee8788d7b9ab907778a8be89543e961a2c29aa046529 AS builder
COPY --from=ghcr.io/astral-sh/uv:latest@sha256:40775a79214294fb51d097c9117592f193bcfdfc634f4daa0e169ee965b10ef0 \
/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:3a4709d9dfc2cf8f1d78ee8788d7b9ab907778a8be89543e961a2c29aa046529 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"]