FROM ubuntu:16.04 RUN apt-get update \ && apt-get install -y python-pip build-essential \ && apt-get -y autoremove \ && apt-get -y clean \ && rm -rf /var/lib/apt/lists/* # Avoid pip 10.0 bug for now RUN pip install --upgrade pip==9.0.3 \ && pip install jupyter numpy scipy pandas sklearn matplotlib plotly \ && rm -r /root/.cache/pip COPY requirements.txt /app/ WORKDIR /app RUN pip install -r requirements.txt RUN mkdir /logs COPY . /app ENTRYPOINT ["python", "psla.py"]