Update Dockerfile to be based on the standard NodeJS image

This commit is contained in:
Sebastián Ramírez 2017-06-15 10:56:30 -05:00
parent 1d76eefe27
commit 61f37062cb

View file

@ -1,9 +1,8 @@
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
FROM node:8.1
COPY . /app
WORKDIR /app/
ENV NODE_ENV production
ENV NODE_ENV docker
RUN npm install --no-progress --production && npm install --no-progress passport-ldapjs
EXPOSE 3000
CMD ["/usr/bin/node", "index.js"]
CMD ["node", "index.js"]