From d2717710d6c6748d3836b3b78d4505c199bd3038 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Sun, 1 Feb 2015 02:27:52 -0800 Subject: [PATCH] merged from develop_2.0 --- .dockerignore | 4 ++++ Dockerfile | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000000..8cfdf4bb299 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.git +node_modules +bower_components +*.swp diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000000..05e9d50be13 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +### +# swagger-ui-builder - https://github.com/wordnik/swagger-ui/ +# Container for building the swagger-ui static site +# +# Build: docker build -t swagger-ui-builder . +# Run: docker run -v $PWD/dist:/build/dist swagger-ui-builder +# +### + +FROM ubuntu:14.04 +MAINTAINER dnephin@gmail.com + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update && apt-get install -y git npm nodejs openjdk-7-jre +RUN ln -s /usr/bin/nodejs /usr/local/bin/node + +WORKDIR /build +ADD package.json /build/package.json +RUN npm install +ADD . /build +CMD PATH=$PATH:node_modules/.bin cake dist +======= +CMD PATH=$PATH:node_modules/.bin cake dist