Merge pull request #199 from programster/docker-changes-2

Docker changes for using local files rather than pulling from web
This commit is contained in:
Andris Reinman 2017-04-09 17:24:58 +03:00 committed by GitHub
commit 66839f17e7

View file

@ -1,9 +1,9 @@
FROM centos FROM centos
RUN curl --silent --location https://rpm.nodesource.com/setup_7.x | bash - 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 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/ WORKDIR /app/
ENV NODE_ENV production ENV NODE_ENV production
RUN npm install --no-progress --production && npm install --no-progress passport-ldapjs RUN npm install --no-progress --production && npm install --no-progress passport-ldapjs
EXPOSE 3000 EXPOSE 3000
CMD ["/usr/bin/node", "index.js"] CMD ["/usr/bin/node", "index.js"]