fonetik-fast / Dockerfile
greg0rs's picture
Update Dockerfile
0e2d936 verified
raw
history blame
506 Bytes
FROM python:3.10-slim
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
ENV HF_HOME=/app/cache
ENV TORCH_HOME=/app/cache
RUN apt-get update && \
apt-get install -y espeak-ng && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y ffmpeg && apt-get clean && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
WORKDIR /app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]