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:
commit
66839f17e7
1 changed files with 2 additions and 2 deletions
|
@ -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"]
|
Loading…
Add table
Add a link
Reference in a new issue