Merge pull request #612 from kmb32123/improve-dockerfile
Improve dockerfile
This commit is contained in:
commit
b65cca74e3
14
Dockerfile
14
Dockerfile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user