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.

This commit is contained in:
Programster 2017-04-08 13:37:59 +01:00
parent bc669c1e05
commit 4b54c36878

View file

@ -1,7 +1,7 @@
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