Dockerfile 511 B

12345678910111213141516
  1. FROM node:12
  2. COPY config.json config/config.json
  3. WORKDIR /opt/genieacs
  4. RUN cd /opt; \
  5. git clone https://github.com/genieacs/genieacs.git; \
  6. cd genieacs; \
  7. git checkout $(git tag -l v1.1.* --sort=-v:refname | head -n 1) ; \
  8. npm install -g --unsafe-perm=true libxmljs ; \
  9. npm install -g --unsafe-perm=true node-gyp ; \
  10. npm install -g --unsafe-perm=true nodejs-legacy ; \
  11. npm install --build-from-resource --unsafe-perm=true; \
  12. npm run compile; \
  13. rm -rf /var/lib/apt/lists/*