ctf / Dockerfile
mkunz7's picture
hopefully fix caching?
15c03c1 verified
raw
history blame
293 Bytes
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"]