Revision 89da28dad15e98cfb4376931bb04c7b1b91c30f9 authored by ThieryMichel on 28 February 2017, 08:15:09 UTC, committed by ThieryMichel on 28 February 2017, 08:15:09 UTC
1 parent 15bf85e
Dockerfile
FROM node:7.4
WORKDIR /app
# Install the node modules only
COPY package.json /app
RUN rm -rf ./node_modules && \
npm install && \
npm cache clean
ENV NODE_ENV production
# Copy the local code source
COPY . /app
RUN cp -n ./config/production-dist.js ./config/production.js && \
BABEL_ENV=browser ./node_modules/.bin/webpack \
--config=src/app/webpack.config.babel.js \
-p && \
npm prune --production
# ezmasterizing of lodex
# See https://github.com/Inist-CNRS/ezmaster#ezmasterizing-an-application
RUN echo '{ \
"httpPort": 3000, \
"configPath": "/app/config.json", \
"dataPath": "/app/src/app/custom/" \
}' > /etc/ezmaster.json
EXPOSE 3000
ENTRYPOINT ["node", "--harmony-async-await", "--require" ,"babel-register"]
CMD ["src/api/index.js"]
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...