cloudnet-compose/result/Dockerfile

19 lines
334 B
Docker
Raw Normal View History

FROM node:8.9-alpine
2015-11-15 20:59:29 +01:00
RUN mkdir -p /app
2015-11-15 20:59:29 +01:00
WORKDIR /app
RUN npm install -g nodemon
RUN npm config set registry https://registry.npmjs.org
COPY package.json /app/package.json
RUN npm install \
&& npm ls \
&& npm cache clean --force \
&& mv /app/node_modules /node_modules
COPY . /app
2015-11-15 20:59:29 +01:00
ENV PORT 80
EXPOSE 80
CMD ["node", "server.js"]