From 4b54c36878ff2ddb8616f4a0832d3e8084e2e62c Mon Sep 17 00:00:00 2001 From: Programster Date: Sat, 8 Apr 2017 13:37:59 +0100 Subject: [PATCH] using the local files for the docker build rather than performing a git clone. This way if we build from an older release, we will be building that release rather than always the latest version of mailtrain. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8f9762b8..c2cb68fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ FROM centos RUN curl --silent --location https://rpm.nodesource.com/setup_7.x | bash - RUN yum install -y git make gcc nodejs ImageMagick && yum clean all -RUN git clone git://github.com/Mailtrain-org/mailtrain.git /app +COPY . /app WORKDIR /app/ ENV NODE_ENV production RUN npm install --no-progress --production && npm install --no-progress passport-ldapjs EXPOSE 3000 -CMD ["/usr/bin/node", "index.js"] +CMD ["/usr/bin/node", "index.js"] \ No newline at end of file