FROM ubuntu | |
WORKDIR /app | |
COPY . /app | |
RUN mkdir /app/cache | |
ENV TRANSFORMERS_CACHE=/app/cache | |
RUN apt update && apt install -y python3 python3-pip ffmpeg nano | |
RUN pip install flask transformers librosa torch torchaudio gunicorn | |
EXPOSE 8080 | |
CMD ["gunicorn", "-b", ":8080", "-w", "2", "host:app"] |