qinling/runtimes/nodejs/Dockerfile
Lingxian Kong 6c6bca6ff8 Add Node.js runtime support
Node.js support is just for experimental purpose at this stage, may
expect a lot of changes and refactoring as time goes by.

Story: 2001580
Task:  6529
Change-Id: Ib75364ed4501da198b2d40f4eb111428e5e3cbbb
2018-03-09 11:18:18 +13:00

15 lines
287 B
Docker

FROM node:8-alpine
MAINTAINER anlin.kong@gmail.com
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
COPY package-lock.json /usr/src/app/
RUN npm install && npm cache clean --force
COPY server.js /usr/src/app/server.js
EXPOSE 9090
CMD [ "npm", "start" ]