]> git.proxmox.com Git - mirror_xterm.js.git/blame_incremental - Dockerfile
higher timeout for test case
[mirror_xterm.js.git] / Dockerfile
... / ...
CommitLineData
1FROM node:6.9
2MAINTAINER Paris Kasidiaris <paris@sourcelair.com>
3
4# Set the working directory
5WORKDIR /usr/src/app
6
7# Set an entrypoint, to automatically install node modules
8ENTRYPOINT ["/bin/bash", "-c", "if [[ ! -d node_modules ]]; then npm install; fi; exec \"${@:0}\";"]
9CMD ["npm", "run", "dev"]
10
11# First, install dependencies to improve layer caching
12COPY package.json /usr/src/app/
13RUN npm install
14
15# Add the code
16COPY . /usr/src/app
17
18# Run the tests and build, to make sure everything is working nicely
19RUN npm run build && npm run test