FROM python:3.7.3-stretch COPY requirements.txt /tmp/ RUN pip install -r /tmp/requirements.txt COPY . /tmp/infomentor RUN pip install /tmp/infomentor RUN useradd --create-home appuser WORKDIR /home/appuser USER appuser VOLUME ["/home/appuser"] CMD [ "python", "-m", "infomentor" ]