From b6e3fc970bf4bae1b63532731670dd650f5ef0e0 Mon Sep 17 00:00:00 2001 From: kemonine Date: Wed, 8 Jul 2020 21:39:32 +0000 Subject: [PATCH] Initial docker file creation --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a177288 --- /dev/null +++ b/Dockerfile @@ -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"]