From 0bc31da3d6e481442e82f93053228df1d62f1c75 Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Fri, 27 Nov 2015 09:44:24 +0000 Subject: [PATCH 1/2] Added Working Dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6633e2a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM node:5.1 +RUN git clone https://github.com/AF83/koalab.git /app +WORKDIR /app +RUN cp config/server.json.example config/server.json +#?? $EDITOR config/server.json" +RUN npm install -g grunt-cli +RUN npm install . +RUN npm install -g bower +RUN bower install --allow-root +RUN grunt +EXPOSE 8080 +RUN apt-get update && apt-get install -y mongodb +RUN echo '{"authorized": [ "*@dspeed.eu" ], "port": 80, "persona": { "audience": "http://localhost:80" }, "mongodb": { "host": "localhost", "database": "koalab" }}' > config/server.json +RUN echo '#!/bin/bash' > /init \ + && echo 'service mongodb start' >> /init \ + && echo 'sleep 15' >> /init \ + && echo 'node koalab.js' >> /init +RUN chmod +x /init +CMD /init + From 7669dded1eca3095dc4430632d23ca8832463347 Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Fri, 27 Nov 2015 09:50:51 +0000 Subject: [PATCH 2/2] Changed: Not pulling image any more in this version because it is pulled on build --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6633e2a..595dd44 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ FROM node:5.1 -RUN git clone https://github.com/AF83/koalab.git /app +# RUN git clone https://github.com/AF83/koalab.git /app +ADD . /app WORKDIR /app RUN cp config/server.json.example config/server.json #?? $EDITOR config/server.json"