Wispersmall / Dockerfile
Samyak38's picture
Update Dockerfile
9abac58 verified
raw
history blame contribute delete
405 Bytes
FROM python:3.9-slim
WORKDIR /code
RUN apt-get update \
&& apt-get install -y libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
ENV HF_HOME=/code/hf_cache
RUN mkdir -p /code/hf_cache && chmod -R 777 /code/hf_cache
COPY ./app /code/app
EXPOSE 7860
CMD ["uvicorn", "app.server:app", "--host", "0.0.0.0", "--port", "7860"]