From d548addc88be70e62dbca5f05ef1d642b3c8d646 Mon Sep 17 00:00:00 2001
From: Allen Gilliland <agilliland@gmail.com>
Date: Sat, 24 Oct 2015 23:48:22 -0700
Subject: [PATCH] Dockerfile which is intended to run the app from source by
 building it first.

---
 Dockerfile | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 Dockerfile

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000000..1644bbecc25
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,35 @@
+FROM ubuntu:trusty
+
+# Make sure we are using UTF-8
+RUN locale-gen en_US.UTF-8
+ENV LANG en_US.UTF-8
+ENV LANGUAGE en_US:en
+ENV LC_ALL en_US.UTF-8
+
+ENV DEBIAN_FRONTEND noninteractive
+ENV DEBCONF_NONINTERACTIVE_SEEN true
+
+# install core build tools
+RUN apt-get update && \
+    apt-get install -y openjdk-7-jdk && \
+    apt-get install -y nodejs && \
+    apt-get install -y npm && \
+    apt-get install -y git && \
+    apt-get install -y wget
+ADD https://raw.github.com/technomancy/leiningen/stable/bin/lein /usr/local/bin/lein
+RUN chmod 744 /usr/local/bin/lein
+
+# little bit of cleanup so that our build process will work
+ENV PATH /usr/local/bin:$PATH
+ENV LEIN_ROOT 1
+RUN ln -s /usr/bin/nodejs /usr/bin/node
+
+# add the application source to the image
+ADD . /app/source
+
+# expose our default runtime port
+EXPOSE 3000
+
+# build and then run it
+WORKDIR /app/source
+ENTRYPOINT ["bash", "-c", "./bin/build && ./bin/start"]
-- 
GitLab