From c61748ec95f98a00271f9cc4878d5794f17bea93 Mon Sep 17 00:00:00 2001 From: Vicente Falco Date: Wed, 7 Feb 2018 14:37:26 +0100 Subject: [PATCH] Dockerfile Services --- services/auth/Dockerfile | 11 +++++++++++ services/client/Dockerfile | 12 ++++++++++++ services/item/Dockerfile | 12 ++++++++++++ services/mailer/Dockerfile | 11 +++++++++++ services/print/Dockerfile | 11 +++++++++++ services/production/Dockerfile | 11 +++++++++++ services/route/Dockerfile | 11 +++++++++++ services/salix/Dockerfile | 11 +++++++++++ 8 files changed, 90 insertions(+) create mode 100644 services/auth/Dockerfile create mode 100644 services/client/Dockerfile create mode 100644 services/item/Dockerfile create mode 100644 services/mailer/Dockerfile create mode 100644 services/print/Dockerfile create mode 100644 services/production/Dockerfile create mode 100644 services/route/Dockerfile create mode 100644 services/salix/Dockerfile diff --git a/services/auth/Dockerfile b/services/auth/Dockerfile new file mode 100644 index 000000000..3264a1c0a --- /dev/null +++ b/services/auth/Dockerfile @@ -0,0 +1,11 @@ +FROM node:8.9.4 + +COPY . /app +COPY ../loopback /loopback + +WORKDIR /app + +RUN npm install +RUN npm -g install pm2 + +CMD ["pm2-docker", "./server/server.js"] diff --git a/services/client/Dockerfile b/services/client/Dockerfile new file mode 100644 index 000000000..b1197d171 --- /dev/null +++ b/services/client/Dockerfile @@ -0,0 +1,12 @@ +FROM node:8.9.4 + +COPY . /app +COPY ../loopback /loopback + +WORKDIR /app + +RUN npm install +RUN npm -g install pm2 + +CMD ["pm2-docker", "./server/server.js"] + diff --git a/services/item/Dockerfile b/services/item/Dockerfile new file mode 100644 index 000000000..b1197d171 --- /dev/null +++ b/services/item/Dockerfile @@ -0,0 +1,12 @@ +FROM node:8.9.4 + +COPY . /app +COPY ../loopback /loopback + +WORKDIR /app + +RUN npm install +RUN npm -g install pm2 + +CMD ["pm2-docker", "./server/server.js"] + diff --git a/services/mailer/Dockerfile b/services/mailer/Dockerfile new file mode 100644 index 000000000..3264a1c0a --- /dev/null +++ b/services/mailer/Dockerfile @@ -0,0 +1,11 @@ +FROM node:8.9.4 + +COPY . /app +COPY ../loopback /loopback + +WORKDIR /app + +RUN npm install +RUN npm -g install pm2 + +CMD ["pm2-docker", "./server/server.js"] diff --git a/services/print/Dockerfile b/services/print/Dockerfile new file mode 100644 index 000000000..3264a1c0a --- /dev/null +++ b/services/print/Dockerfile @@ -0,0 +1,11 @@ +FROM node:8.9.4 + +COPY . /app +COPY ../loopback /loopback + +WORKDIR /app + +RUN npm install +RUN npm -g install pm2 + +CMD ["pm2-docker", "./server/server.js"] diff --git a/services/production/Dockerfile b/services/production/Dockerfile new file mode 100644 index 000000000..3264a1c0a --- /dev/null +++ b/services/production/Dockerfile @@ -0,0 +1,11 @@ +FROM node:8.9.4 + +COPY . /app +COPY ../loopback /loopback + +WORKDIR /app + +RUN npm install +RUN npm -g install pm2 + +CMD ["pm2-docker", "./server/server.js"] diff --git a/services/route/Dockerfile b/services/route/Dockerfile new file mode 100644 index 000000000..3264a1c0a --- /dev/null +++ b/services/route/Dockerfile @@ -0,0 +1,11 @@ +FROM node:8.9.4 + +COPY . /app +COPY ../loopback /loopback + +WORKDIR /app + +RUN npm install +RUN npm -g install pm2 + +CMD ["pm2-docker", "./server/server.js"] diff --git a/services/salix/Dockerfile b/services/salix/Dockerfile new file mode 100644 index 000000000..3264a1c0a --- /dev/null +++ b/services/salix/Dockerfile @@ -0,0 +1,11 @@ +FROM node:8.9.4 + +COPY . /app +COPY ../loopback /loopback + +WORKDIR /app + +RUN npm install +RUN npm -g install pm2 + +CMD ["pm2-docker", "./server/server.js"]