FROM ubuntu:16.04 RUN apt-get update \ && apt-get install -y python3 python3-pip \ && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* COPY kpi_service /kpi_service COPY requirements.txt /kpi_service/requirements.txt WORKDIR /kpi_service RUN pip3 install --upgrade pip RUN pip3 install -r requirements.txt EXPOSE 5000 CMD python3 kpi_service.py --results /results