Set GIT_HASH as argument

This commit is contained in:
Pivovarov
2018-10-29 15:13:11 +11:00
parent 6e3f85a00d
commit 0ea2953644

View File

@@ -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