summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Moloney <stephenmoloney@live.com>2017-02-01 20:07:07 +0000
committerStephen Moloney <stephenmoloney@live.com>2017-02-01 20:07:07 +0000
commit22b5b9819de63558d17df6a5490e9c8f896f8020 (patch)
tree3e615789427da68d36d108b764c26ff074eb5e18
parent3f7919e0b31256401198499117590ded6a423491 (diff)
downloadwekan-22b5b9819de63558d17df6a5490e9c8f896f8020.tar.gz
wekan-22b5b9819de63558d17df6a5490e9c8f896f8020.tar.bz2
wekan-22b5b9819de63558d17df6a5490e9c8f896f8020.zip
fix problem with arguments
-rw-r--r--Dockerfile18
1 files changed, 13 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 9e2b3a2e..b6e8b3df 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,13 +1,21 @@
FROM debian:wheezy
MAINTAINER wefork
+# Declare Arguments
+ARG NODE_VERSION
+ARG METEOR_RELEASE
+ARG NPM_VERSION
+ARG ARCHITECTURE
+ARG SRC_PATH
+
+# Set the environment variables (defaults where required)
ENV BUILD_DEPS="wget curl bzip2 build-essential python git ca-certificates"
ENV GOSU_VERSION=1.10
-ARG NODE_VERSION=v0.10.48
-ARG METEOR_RELEASE=1.3.5.1
-ARG NPM_VERSION=3.10.10
-ARG ARCHITECTURE=linux-x64
-ARG SRC_PATH=./
+ENV NODE_VERSION ${NODE_VERSION:-v0.10.48}
+ENV METEOR_RELEASE ${METEOR_RELEASE:-1.3.5.1}
+ENV NPM_VERSION ${NPM_VERSION:-3.10.10}
+ENV ARCHITECTURE ${ARCHITECTURE:-linux-x64}
+ENV SRC_PATH ${SRC_PATH:-./}
# Copy the app to the image
COPY ${SRC_PATH} /home/wekan/app