]> git.proxmox.com Git - mirror_xterm.js.git/blame - Dockerfile
higher timeout for test case
[mirror_xterm.js.git] / Dockerfile
CommitLineData
6b631422 1FROM node:6.9
53e8df40
PK
2MAINTAINER Paris Kasidiaris <paris@sourcelair.com>
3
6b631422
AK
4# Set the working directory
5WORKDIR /usr/src/app
6
7# Set an entrypoint, to automatically install node modules
61c213f9 8ENTRYPOINT ["/bin/bash", "-c", "if [[ ! -d node_modules ]]; then npm install; fi; exec \"${@:0}\";"]
b2e257bf 9CMD ["npm", "run", "dev"]
6b631422
AK
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
61c213f9 19RUN npm run build && npm run test