speaches-demo / Dockerfile
kostissz's picture
Revert to even older image...
34f2725 verified
raw
history blame contribute delete
595 Bytes
# Base image directly using the pre-built speaches image
FROM ghcr.io/speaches-ai/speaches:0.7.0-cpu
USER ubuntu
ENV HOME=/home/ubuntu \
PATH=/home/ubuntu/.local/bin:$PATH
# Ensure the HuggingFace cache directory exists and has proper permissions
RUN mkdir -p $HOME/.cache/huggingface/hub
# Create a volume for the HuggingFace cache
VOLUME ["$HOME/.cache/huggingface/hub"]
# Environment variables
ENV UVICORN_HOST=0.0.0.0
ENV UVICORN_PORT=7860
# Expose the port that the server listens on
EXPOSE 7860
# Command to run the server
CMD ["uvicorn", "--factory", "speaches.main:create_app"]