Created
November 17, 2015 10:43
-
-
Save ashgillman/a6aa7a5afc9e146a65fb to your computer and use it in GitHub Desktop.
Docker MotD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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