From 5213d151012f218f0a3205678c4be3180fbcc80b Mon Sep 17 00:00:00 2001
From: Allen Gilliland <agilliland@gmail.com>
Date: Tue, 24 Nov 2015 18:22:05 -0800
Subject: [PATCH] do our app build during our docker image build step in order
 to speed up launch of the app.

---
 Dockerfile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 1644bbecc25..134bf36af67 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -27,9 +27,13 @@ RUN ln -s /usr/bin/nodejs /usr/bin/node
 # add the application source to the image
 ADD . /app/source
 
+# build the app
+WORKDIR /app/source
+RUN bin/build
+
 # expose our default runtime port
 EXPOSE 3000
 
 # build and then run it
 WORKDIR /app/source
-ENTRYPOINT ["bash", "-c", "./bin/build && ./bin/start"]
+ENTRYPOINT ["./bin/start"]
-- 
GitLab