選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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"]