Skip to content

Instantly share code, notes, and snippets.

@dannycroft
Created April 20, 2015 15:55
Show Gist options
  • Select an option

  • Save dannycroft/1c197cdd5fed6b162b0c to your computer and use it in GitHub Desktop.

Select an option

Save dannycroft/1c197cdd5fed6b162b0c to your computer and use it in GitHub Desktop.
Dockerfile
FROM ubuntu:utopic
RUN apt-get update \
&& apt-get install -y --force-yes \
apt-transport-https \
build-essential \
curl \
lsb-release \
python-all \
rlwrap \
&& rm -rf /var/lib/apt/lists/*;
RUN curl https://deb.nodesource.com/node/pool/main/n/nodejs/nodejs_0.10.36-1nodesource1~utopic1_amd64.deb > node.deb \
&& dpkg -i node.deb \
&& rm node.deb
RUN npm install -g pangyp\
&& ln -s $(which pangyp) $(dirname $(which pangyp))/node-gyp\
&& npm cache clear\
&& node-gyp configure || echo ""
ENV NODE_ENV production
ADD service /usr/src/service¬
WORKDIR /usr/src/service¬
RUN npm install
RUN npm run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment