From 0ea2953644dfb9dfce086b14006ec4ef0b2a0d58 Mon Sep 17 00:00:00 2001 From: Pivovarov Date: Mon, 29 Oct 2018 15:13:11 +1100 Subject: [PATCH] Set GIT_HASH as argument --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d7539cc..a1be532 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,10 +12,12 @@ RUN apk add --no-cache \ WORKDIR /app +ARG GIT_HASH +ENV GIT_HASH ${GIT_HASH:2dad2bb572aa458760decde5320c382b3080a22e} + ENV RAILS_ENV development ENV RACK_ENV development ENV NODE_ENV production -ENV GIT_HASH 2dad2bb572aa458760decde5320c382b3080a22e RUN git clone https://github.com/snibox/snibox.git /app && cd /app && git reset --hard $GIT_HASH