cp-extra / Dockerfile
ikechan8370's picture
fix: cache
ed29561
FROM python:3.9
WORKDIR /code
ENV TRANSFORMERS_CACHE=/code/.cache
RUN mkdir /code/.cache
COPY ./requirements.txt /code/requirements.txt
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y -y
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . /code
CMD ["python", "/code/main.py"]