alertmon/Dockerfile

20 lines
425 B
Docker

FROM node:4.2.1
EXPOSE 3000
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
RUN mkdir -p /usr/src/app/db
VOLUME ["/usr/src/app/db"]
RUN npm install -g nodemon
RUN apt-get update && apt-get install -y vim git
COPY .vimrc /root/.vimrc
COPY package.json /usr/src/app/
COPY . /usr/src/app
RUN npm install
# Use nodemon to start app, note this will break if main file no longer named server.js.
CMD [ "nodemon", "server.js" ]