Dockerfile 471 B

123456789101112131415161718192021222324252627
  1. FROM alpine:3.4
  2. # File Author / Maintainer
  3. LABEL authors="Zouhir Chahoud <zouhir@zouhir.org>"
  4. # Update & install required packages
  5. RUN apk add --update nodejs bash git
  6. # Install app dependencies
  7. COPY package.json /www/package.json
  8. RUN cd /www; npm install
  9. # Copy app source
  10. COPY . /www
  11. # Set work directory to /www
  12. WORKDIR /www
  13. # set your port
  14. ENV PORT 8080
  15. # expose the port to outside world
  16. EXPOSE 8080
  17. # start command as per package.json
  18. CMD ["npm", "start"]