Initial docker file creation

This commit is contained in:
kemonine 2020-07-08 21:39:32 +00:00
parent 302147df57
commit b6e3fc970b

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM node:latest
COPY . /opt/fipamo
WORKDIR /opt/fipamo
RUN npm install pm2 -g \
&& npm install .
EXPOSE 2314
VOLUME /opt/fipamo/public
VOLUME /opt/fipamo/content
VOLUME /opt/fipamo/site
VOLUME /opt/fipamo/config.json
VOLUME /opt/fipamo/site-settings.json
ENTRYPOINT ["/usr/local/bin/npm"]
CMD ["start", "--", "--no-daemon"]