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