2017-06-15 15:56:30 +00:00
|
|
|
FROM node:8.1
|
|
|
|
|
2017-06-24 23:17:00 +00:00
|
|
|
# First install dependencies
|
|
|
|
COPY ./package.json ./app/
|
2017-03-17 14:48:50 +00:00
|
|
|
WORKDIR /app/
|
2017-06-24 23:17:00 +00:00
|
|
|
ENV NODE_ENV production
|
2017-03-17 14:48:50 +00:00
|
|
|
RUN npm install --no-progress --production && npm install --no-progress passport-ldapjs
|
2017-06-24 23:17:00 +00:00
|
|
|
# Later, copy the app files. That improves development speed as buiding the Docker image will not have
|
|
|
|
# to download and install all the NPM dependencies every time there's a change in the source code
|
|
|
|
COPY . /app
|
2017-03-17 14:48:50 +00:00
|
|
|
EXPOSE 3000
|
2017-06-24 23:17:00 +00:00
|
|
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
2017-06-15 15:56:30 +00:00
|
|
|
CMD ["node", "index.js"]
|