mailtrain/Dockerfile

10 lines
391 B
Text
Raw Normal View History

FROM centos
RUN curl --silent --location https://rpm.nodesource.com/setup_7.x | bash -
2017-03-21 09:07:24 +00:00
RUN yum install -y git make gcc nodejs ImageMagick && yum clean all
2017-03-23 13:47:00 +00:00
RUN git clone git://github.com/Mailtrain-org/mailtrain.git /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"]