Skip to content

Instantly share code, notes, and snippets.

@y13i
Created January 23, 2017 10:05
Show Gist options
  • Save y13i/5ff96dba897d0a59dba05dcb6d3a8b24 to your computer and use it in GitHub Desktop.
Save y13i/5ff96dba897d0a59dba05dcb6d3a8b24 to your computer and use it in GitHub Desktop.
FROM node:wheezy
RUN apt-get -y update && \
apt-get -y install git build-essential && \
mkdir -p /app && \
cd /app && \
git clone https://github.com/sourcelair/xterm.js.git && \
cd xterm.js && \
npm install
WORKDIR /app/xterm.js
CMD ["npm", "start"]
# did not work
FROM node:alpine
RUN apk --no-cache add git make gcc g++ python linux-headers paxctl gnupg bash && \
mkdir -p /app && \
cd /app && \
git clone https://github.com/sourcelair/xterm.js.git && \
npm install --global node-gyp && \
cd xterm.js && \
npm install
WORKDIR /app/xterm.js
CMD ["npm", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment