Andy Bavier | 28171f9 | 2017-03-18 19:34:46 -0700 | [diff] [blame] | 1 | FROM xosproject/xos-gui-extension-builder:candidate |
Matteo Scandolo | fc4b37b | 2017-02-02 12:18:47 -0800 | [diff] [blame] | 2 | |
| 3 | # Set environment vars |
| 4 | ENV CODE_SOURCE . |
| 5 | ENV CODE_DEST /var/www |
| 6 | ENV VHOST /var/www/dist |
| 7 | |
Matteo Scandolo | fc4b37b | 2017-02-02 12:18:47 -0800 | [diff] [blame] | 8 | # Add the app deps |
| 9 | COPY ${CODE_SOURCE}/package.json ${CODE_DEST}/package.json |
| 10 | COPY ${CODE_SOURCE}/typings.json ${CODE_DEST}/typings.json |
| 11 | |
| 12 | # Install Deps |
| 13 | WORKDIR ${CODE_DEST} |
| 14 | RUN npm install |
| 15 | RUN npm run typings |
| 16 | |
Matteo Scandolo | fc4b37b | 2017-02-02 12:18:47 -0800 | [diff] [blame] | 17 | # Build the app |
Matteo Scandolo | fc4b37b | 2017-02-02 12:18:47 -0800 | [diff] [blame] | 18 | COPY ${CODE_SOURCE}/conf ${CODE_DEST}/conf |
| 19 | COPY ${CODE_SOURCE}/gulp_tasks ${CODE_DEST}/gulp_tasks |
| 20 | COPY ${CODE_SOURCE}/src ${CODE_DEST}/src |
| 21 | COPY ${CODE_SOURCE}/gulpfile.js ${CODE_DEST}/gulpfile.js |
| 22 | COPY ${CODE_SOURCE}/tsconfig.json ${CODE_DEST}/tsconfig.json |
| 23 | COPY ${CODE_SOURCE}/tslint.json ${CODE_DEST}/tslint.json |
| 24 | RUN npm run build |