Download this file
Dockerfile
30 lines (21 with data), 648 Bytes
#KBZ @ vf-OS project
#Miguel Rodrigues miguel.rodrigues@knowledgebiz.pt
# Dockerfile for a node container
#nodejs
FROM node:9
#Maintainer
LABEL description="Notification Enabler"
LABEL maintainer="miguel.rodrigues@knowledgebiz.pt"
# configuration enabler directory
RUN mkdir -p /usr/src/ne
# this lets the working directory for every COPY RUN and CMD command
WORKDIR /usr/src/ne
# get the node package file
# wildcard used to ensure both package.json and package-lock.json are copied
COPY package*.json /usr/src/ne/
# install dependencies
RUN npm install
COPY . .
# expose the configuration enabler port
EXPOSE 5000
CMD [ "npm", "start" ]