blob: 523e69cdc93e7f15d003ea4ee057e2a84465c9af [file] [log] [blame]
Matteo Scandolo11b4a632017-02-09 10:28:41 -08001# To build use: docker build -t xosproject/xos-gui-extension-builder .
2
3FROM node:argon
4
5# Set environment vars
6ENV CODE_SOURCE .
7ENV CODE_DEST /var/www
8
Matteo Scandolofec479c2017-03-17 13:21:59 -07009RUN mkdir -p /var/www
10
Matteo Scandolo11b4a632017-02-09 10:28:41 -080011# Add the app deps
12COPY ${CODE_SOURCE}/package.json ${CODE_DEST}/package.json
13COPY ${CODE_SOURCE}/typings.json ${CODE_DEST}/typings.json
14
15# Install Deps
16WORKDIR ${CODE_DEST}
17RUN npm install
18RUN npm run typings