From 61f37062cbe8592f973d03a8f768755d68a091fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Thu, 15 Jun 2017 10:56:30 -0500 Subject: [PATCH] Update Dockerfile to be based on the standard NodeJS image --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c2cb68fe..0f759e57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +CMD ["node", "index.js"] \ No newline at end of file