|
FROM python:3.9 |
|
|
|
WORKDIR /code |
|
|
|
|
|
COPY ./requirements.txt /code/requirements.txt |
|
|
|
|
|
RUN apt-get update && apt-get install -y \ |
|
ffmpeg \ |
|
libsndfile1 \ |
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN pip install --no-cache-dir --upgrade -r requirements.txt |
|
|
|
|
|
ENV HF_HOME /code/.cache/huggingface |
|
|
|
|
|
RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME |
|
|
|
|
|
COPY ./DistillMDPI1 /code/DistillMDPI1 |
|
COPY ./Neptune /code/Neptune |
|
|
|
|
|
COPY . . |
|
|
|
|
|
RUN mkdir -p /code/static/uploads && chmod -R 777 /code/static/uploads |
|
|
|
|
|
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"] |