You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 338B

12345678910111213141516
  1. FROM node:10-alpine
  2. WORKDIR /opt/app
  3. COPY . /opt/app
  4. ENV PORT=80
  5. EXPOSE 80
  6. VOLUME /opt/app/server-data
  7. RUN touch /usr/bin/start.sh # this is the script which will run on start
  8. RUN echo 'npm install --production' >> /usr/bin/start.sh
  9. RUN echo 'node /opt/app/server/server.js' >> /usr/bin/start.sh
  10. CMD ["/bin/sh","/usr/bin/start.sh"]