2015-10-06 14:27:17 -04:00
|
|
|
FROM node:4.1.2
|
|
|
|
|
2015-06-16 22:52:06 -04:00
|
|
|
EXPOSE 3000
|
2015-10-06 14:27:17 -04:00
|
|
|
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN mkdir -p /usr/src/app/db
|
2015-06-21 14:04:07 -04:00
|
|
|
VOLUME ["/usr/src/app/db"]
|
2015-10-06 14:27:17 -04:00
|
|
|
|
|
|
|
RUN npm install -g nodemon
|
|
|
|
RUN apt-get update && apt-get install -y vim git
|
2015-10-07 10:52:52 -04:00
|
|
|
COPY .vimrc /root/.vimrc
|
2015-10-06 14:27:17 -04:00
|
|
|
|
|
|
|
COPY package.json /usr/src/app/
|
|
|
|
RUN npm install
|
|
|
|
COPY . /usr/src/app
|
|
|
|
|
|
|
|
# Use nodemon to start app, note this will break if main file no longer named server.js.
|
|
|
|
CMD [ "nodemon", "server.js" ]
|