Matteo Scandolo | 11b4a63 | 2017-02-09 10:28:41 -0800 | [diff] [blame] | 1 | # To build use: docker build -t xosproject/xos-gui-extension-builder . |
| 2 | |
| 3 | FROM node:argon |
| 4 | |
| 5 | # Set environment vars |
| 6 | ENV CODE_SOURCE . |
| 7 | ENV CODE_DEST /var/www |
| 8 | |
Matteo Scandolo | fec479c | 2017-03-17 13:21:59 -0700 | [diff] [blame] | 9 | RUN mkdir -p /var/www |
| 10 | |
Matteo Scandolo | 11b4a63 | 2017-02-09 10:28:41 -0800 | [diff] [blame] | 11 | # Add the app deps |
| 12 | COPY ${CODE_SOURCE}/package.json ${CODE_DEST}/package.json |
| 13 | COPY ${CODE_SOURCE}/typings.json ${CODE_DEST}/typings.json |
| 14 | |
| 15 | # Install Deps |
| 16 | WORKDIR ${CODE_DEST} |
| 17 | RUN npm install |
| 18 | RUN npm run typings |