Skip to content

Instantly share code, notes, and snippets.

@ashgillman
Created November 17, 2015 10:43
Show Gist options
  • Save ashgillman/a6aa7a5afc9e146a65fb to your computer and use it in GitHub Desktop.
Save ashgillman/a6aa7a5afc9e146a65fb to your computer and use it in GitHub Desktop.
Docker MotD
FROM debian:jessie
MAINTAINER Ashley Gillman <[email protected]>
# 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"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment