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 | |||||
9 | # Add the app deps | ||||
10 | COPY ${CODE_SOURCE}/package.json ${CODE_DEST}/package.json | ||||
11 | COPY ${CODE_SOURCE}/typings.json ${CODE_DEST}/typings.json | ||||
12 | |||||
13 | # Install Deps | ||||
14 | WORKDIR ${CODE_DEST} | ||||
15 | RUN npm install | ||||
16 | RUN npm run typings |