FROM ubuntu:18.04

RUN apt-get -y update

RUN apt-get install -y python3-dev python3-pip libsm6 libxrender1 libxext-dev

RUN apt-get -y install software-properties-common

RUN add-apt-repository ppa:jonathonf/ffmpeg-4

RUN rm -r /var/lib/apt/lists/*

RUN pip3 install --upgrade pip

RUN pip3 install websocket-client==0.40.0
# Install dependencies
RUN pip3 install influxdb

RUN pip3 install psutil

RUN apt-get -y update

RUN apt-get -y install ffmpeg

RUN pip3 install pytz

COPY replay.py replay.py

RUN mkdir /data

CMD python3 replay.py

