Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 360 Bytes
FROM node:7.7-alpine
MAINTAINER Jatin Shridhar <shridhar.jatin@gmail.com>
# install deps
ADD package.json /tmp/package.json
RUN cd /tmp && npm install
# Copy deps
RUN mkdir -p /opt/hello-world-app && cp -a /tmp/node_modules /opt/hello-world-app
# Setup workdir
WORKDIR /opt/hello-world-app
COPY . /opt/hello-world-app
# run
EXPOSE 3000
CMD ["npm", "start"]