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