Update Dockerfile to be based on the standard NodeJS image
This commit is contained in:
parent
1d76eefe27
commit
61f37062cb
1 changed files with 4 additions and 5 deletions
|
@ -1,9 +1,8 @@
|
||||||
FROM centos
|
FROM node:8.1
|
||||||
RUN curl --silent --location https://rpm.nodesource.com/setup_7.x | bash -
|
|
||||||
RUN yum install -y git make gcc nodejs ImageMagick && yum clean all
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV docker
|
||||||
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 ["node", "index.js"]
|
Loading…
Add table
Add a link
Reference in a new issue