Revision b09d4826d4037bc60338b5d60a3956e7e289b5dc authored by youlot on 18 January 2019, 09:39:46 UTC, committed by youlot on 18 January 2019, 09:39:46 UTC
1 parent 46c3e39
Dockerfile
FROM node:10
WORKDIR /app
# Copy the local code source
COPY . /app
# Install the node modules only
RUN rm -rf ./node_modules && \
npm install --production && \
npm cache clean --force
ARG node_env="production"
ENV NODE_ENV=$node_env
RUN cp -n ./config/production-dist.js ./config/production.js
# ezmasterizing of lodex
# See https://github.com/Inist-CNRS/ezmaster#ezmasterizing-an-application
# cleanupScript disabled because of this commit https://github.com/Inist-CNRS/lodex/commit/4e7c542a8745f97fb21004c96489a21c5bea32a4
RUN echo '{ \
"httpPort": 3000, \
"configPath": "/app/config.json", \
"dataPath": "/app/src/app/custom", \
"#cleanupScript": "/app/src/common/mongoCleanup.sh" \
}' > /etc/ezmaster.json
RUN npm run build
EXPOSE 3000
CMD ["npm", "start"]
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...