Skip to content
This repository was archived by the owner on Mar 12, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM node:5.1
# 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"
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