diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..5c10f62 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 05d8506..812d5fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ FROM node:4-wheezy +ENV AAT_VER=0.2.2 + +MAINTAINER Gary Ritchie + RUN apt-get update && apt-get install -y \ build-essential \ - libssl-dev \ - git \ ffmpeg \ + git \ + libssl-dev \ && rm -rf /var/lib/apt/lists/* # global npm dependencies @@ -13,7 +17,7 @@ RUN npm install -g pm2 \ && npm install -g adapt-cli RUN cd / \ - && git clone https://github.com/adaptlearning/adapt_authoring.git + && git clone --branch ${AAT_VER} https://github.com/adaptlearning/adapt_authoring.git WORKDIR /adapt_authoring