FROM debian:buster-slim

LABEL maintainer="Drew Short <warrick@sothr.com>"

RUN mkdir -p /opt/checker \
    /source

VOLUME /source

COPY . /opt/checker

RUN chmod +x /opt/checker/check_movies.sh

RUN apt-get -y update \
    && apt-get -y --no-install-recommends install \
        bsdmainutils \
        ffmpeg \
        jq \
        util-linux \
    && rm -Rf /var/lib/apt/lists/*

WORKDIR /opt/checker