Use SOURCE_COMMIT environment variable for REVISION file during Docker build

This commit is contained in:
Patrick Gansterer 2017-07-31 23:22:31 +02:00
parent 6fddef354d
commit 5903b4d601

View file

@ -13,7 +13,7 @@ ENV RAILS_ENV=production
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY . ./ COPY . ./
RUN git rev-parse --short HEAD > REVISION && \ RUN echo $SOURCE_COMMIT > REVISION && \
bundle install --without development --without test && \ bundle install --without development --without test && \
whenever --update-crontab whenever --update-crontab