FROM tensorflow/tensorflow:2.8.2

# To disable tzdata and others from asking for input
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update -qq -y \
 && apt-get install -y software-properties-common \
 && add-apt-repository -y ppa:jonathonf/ffmpeg-4 \
 && apt-get update -qq -y \
 && apt-get install -y libsm6 libxrender1 libxext-dev python3-tk ffmpeg git \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*

COPY ./requirements/_requirements_base.txt /opt/
RUN pip3 install --upgrade pip
RUN pip3 --no-cache-dir install -r /opt/_requirements_base.txt && rm /opt/_requirements_base.txt

WORKDIR "/srv"
CMD ["/bin/bash"]
