From 72ac87f8e8977867738f479648be863b6239d5b7 Mon Sep 17 00:00:00 2001 From: ALinuxNinja Date: Wed, 26 Apr 2017 16:38:01 -0400 Subject: [PATCH] add startup script --- Dockerfile | 6 ++++++ scripts/start.sh | 0 2 files changed, 6 insertions(+) mode change 100644 => 100755 scripts/start.sh diff --git a/Dockerfile b/Dockerfile index 8af62f8..8a61604 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,5 +17,11 @@ RUN git clone https://github.com/atech/postal /opt/postal/app \ ## Install gems required by postal RUN /opt/postal/app/bin/postal bundle /opt/postal/app/vendor/bundle +## Stick in startup script +ADD scripts/start.sh /start.sh + ## Clean up apt RUN rm -rf /var/lib/apt/lists/* + +## Entrypoint +ENTRYPOINT ["/start.sh"] diff --git a/scripts/start.sh b/scripts/start.sh old mode 100644 new mode 100755