whitebophir/Dockerfile
2019-03-27 11:50:24 +01:00

16 lines
338 B
Docker

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