]> git.proxmox.com Git - mirror_xterm.js.git/blame_incremental - Dockerfile
Merge pull request #432 from Tyriar/335_TS_EventEmitter
[mirror_xterm.js.git] / Dockerfile
... / ...
CommitLineData
1FROM node:6.9
2MAINTAINER Paris Kasidiaris <paris@sourcelair.com>
3
4# Install cpio, used for building
5RUN apt-get update \
6 && apt-get install -y --no-install-recommends cpio \
7 && rm -rf /var/lib/apt/lists/*
8
9# Set the working directory
10WORKDIR /usr/src/app
11
12# Set an entrypoint, to automatically install node modules
13ENTRYPOINT ["/bin/bash", "-c", "if [[ ! -d node_modules ]]; then npm install; fi; exec \"${@:0}\";"]
14CMD ["npm", "run", "dev"]
15
16# First, install dependencies to improve layer caching
17COPY package.json /usr/src/app/
18RUN npm install
19
20# Add the code
21COPY . /usr/src/app
22
23# Run the tests and build, to make sure everything is working nicely
24RUN npm run build && npm run test