FROM debian:jessie MAINTAINER Ashley Gillman <gillmanash@gmail.com> # Source working/installation directory ENV INSTALL /usr/local/src RUN echo '[ ! -z "$TERM" -a -r /etc/motd ] && cat /etc/issue && cat /etc/motd' \ >> /etc/bash.bashrc \ ; echo "\ ===================================================================\n\ = SomeApp Docker container =\n\ ===================================================================\n\ \n\ SomeApp: The appiest app of them all.\n\ (c) Ashley Gillman 2015\n\ \n\ Source directory is $INSTALL\n"\ > /etc/motd COPY . $INSTALL/someapp #--------------------------------------------------------------------- # Tini entrypoint #--------------------------------------------------------------------- # Add Tini init script - take care of runaway processes ENV TINI_VERSION v0.7.0 ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini RUN chmod +x /tini ENTRYPOINT ["/tini", "--"] CMD ["bash"]