blob: 911bd1599582997c6483513b8d5b41edeba885f2 [file] [log] [blame]
Andy Bavier28171f92017-03-18 19:34:46 -07001FROM xosproject/xos-gui-extension-builder:candidate
Matteo Scandolofc4b37b2017-02-02 12:18:47 -08002
3# Set environment vars
4ENV CODE_SOURCE .
5ENV CODE_DEST /var/www
6ENV VHOST /var/www/dist
7
Matteo Scandolofc4b37b2017-02-02 12:18:47 -08008# Add the app deps
9COPY ${CODE_SOURCE}/package.json ${CODE_DEST}/package.json
10COPY ${CODE_SOURCE}/typings.json ${CODE_DEST}/typings.json
11
12# Install Deps
13WORKDIR ${CODE_DEST}
14RUN npm install
15RUN npm run typings
16
Matteo Scandolofc4b37b2017-02-02 12:18:47 -080017# Build the app
Matteo Scandolofc4b37b2017-02-02 12:18:47 -080018COPY ${CODE_SOURCE}/conf ${CODE_DEST}/conf
19COPY ${CODE_SOURCE}/gulp_tasks ${CODE_DEST}/gulp_tasks
20COPY ${CODE_SOURCE}/src ${CODE_DEST}/src
21COPY ${CODE_SOURCE}/gulpfile.js ${CODE_DEST}/gulpfile.js
22COPY ${CODE_SOURCE}/tsconfig.json ${CODE_DEST}/tsconfig.json
23COPY ${CODE_SOURCE}/tslint.json ${CODE_DEST}/tslint.json
24RUN npm run build