[feature] Add Dockerfile and update README
This commit is contained in:
parent
b6497b0e86
commit
0c1684a751
2 changed files with 80 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM centos
|
||||
RUN curl --silent --location https://rpm.nodesource.com/setup_7.x | bash -
|
||||
RUN yum install -y git make gcc nodejs && yum clean all
|
||||
RUN git clone git://github.com/andris9/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"]
|
Loading…
Add table
Add a link
Reference in a new issue