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 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

RUN apt-get -y install cifs-utils

COPY storage.py storage.py

RUN mkdir /data

CMD python3 storage.py


