Revision bd972e87d562c0880a5d3a15c4b3974327311c42 authored by ThieryMichel on 02 March 2017, 10:01:31 UTC, committed by ThieryMichel on 02 March 2017, 10:01:31 UTC
1 parent a5268e6
Raw File
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

# 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"]
back to top