Merge pull request #612 from kmb32123/improve-dockerfile

Improve dockerfile
This commit is contained in:
Benoit Schweblin 2015-04-14 19:43:51 +01:00
commit b65cca74e3

View File

@ -1,13 +1,7 @@
FROM debian:jessie
# Pull base image.
FROM node:0.12-onbuild
RUN apt-get update
RUN apt-get upgrade -yq
RUN apt-get install -yq git nodejs-legacy npm
RUN git clone https://github.com/benweet/stackedit.git
WORKDIR stackedit
RUN npm install
RUN node_modules/bower/bin/bower install --allow-root --production --config.interactive=false
CMD nodejs server.js
# Node base will default the command to `node server.js`.
# Expose port.
EXPOSE 3000