aboutsummaryrefslogtreecommitdiff
path: root/proofn-api/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'proofn-api/Dockerfile')
-rw-r--r--proofn-api/Dockerfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/proofn-api/Dockerfile b/proofn-api/Dockerfile
new file mode 100644
index 0000000..34b9e9f
--- /dev/null
+++ b/proofn-api/Dockerfile
@@ -0,0 +1,21 @@
+##
+## Image for proofn web API.
+##
+## Run this image with volume mounted at /srv/www,
+##
+## docker run -v $(pwd)/src:/srv/www -it sulhan/proofn-api
+##
+FROM sulhan/arch-nodejs:latest
+MAINTAINER Sulhan <ms@kilabit.info>
+
+VOLUME ["/srv/www"]
+EXPOSE 80
+
+COPY init.sh /
+
+USER root
+
+RUN npm install -g sails --unsafe-perm && \
+ npm install -g pm2 --unsafe-perm
+
+CMD ["/init.sh"]