48 lines
1.5 KiB
Docker
48 lines
1.5 KiB
Docker
### Vibevoice.cpp Container with Vulkan GPU support
|
|
### High-performance TTS (Text-to-Speech) + ASR (Speech Recognition)
|
|
### Based on vibevoice.cpp: https://github.com/localai-org/vibevoice.cpp
|
|
###
|
|
### BUILD: ./build-container.sh (compiles locally with Vulkan)
|
|
### THEN: podman build -t vibevoice:vulkan-amd64 -f vibevoice-vulkan.Containerfile .
|
|
|
|
FROM debian:13-slim
|
|
|
|
ARG MODELS=vibevoice-realtime-0.5B
|
|
|
|
USER root
|
|
EXPOSE 8080
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y curl ffmpeg nano \
|
|
&& apt-get install -y libvulkan1 vulkan-tools mesa-vulkan-drivers libdrm-amdgpu1 \
|
|
&& apt-get autoremove -y \
|
|
&& apt-get clean -y \
|
|
&& rm -rf /tmp/* /var/tmp/* \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& find /var/cache/apt/archives /var/lib/apt/lists -not -name lock -type f -delete \
|
|
&& find /var/cache -type f -delete
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy pre-compiled binaries with Vulkan support
|
|
COPY bin-vulkan/ /app/
|
|
RUN chmod +x /app/vibevoice-cli /app/vibevoice-* 2>/dev/null || true
|
|
|
|
# Copy entrypoint
|
|
COPY entrypoint.sh /app/ 2>/dev/null || true
|
|
RUN [ -f /app/entrypoint.sh ] && chmod +x /app/entrypoint.sh || true
|
|
|
|
# Create models and audio directories (will be mounted as volumes at runtime)
|
|
RUN mkdir -p /app/models /app/audio
|
|
|
|
# Set environment variables
|
|
ENV PATH=/app:$PATH
|
|
ENV LD_LIBRARY_PATH=/app:/usr/local/lib:/usr/lib:/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
|
|
|
|
# Vulkan environment
|
|
ENV VK_DRIVER_FILES=/usr/share/vulkan/icd.d/radeon_icd.json
|
|
|
|
# Vibevoice model configuration
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
|
CMD ["--help"]
|