From 7c20decafe0110a01ad2d0dcd60ca499d2070a38 Mon Sep 17 00:00:00 2001 From: Jinesh <50176918+jineshb@users.noreply.github.com> Date: Tue, 6 Aug 2019 14:55:05 -0400 Subject: [PATCH] altered build steps to utilize the cloud build cache (#728) --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 604aa1b6..544e6bd9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,10 +13,6 @@ apt-get update && apt-get install -y nodejs yarn # Set an environment variable for the install location. ENV RAILS_ROOT /usr/src/app -# Sets the footer of greenlight application with current build version -ARG version_code -ENV VERSION_CODE=$version_code - # Make the directory and set as working. RUN mkdir -p $RAILS_ROOT WORKDIR $RAILS_ROOT @@ -37,5 +33,9 @@ RUN SECRET_KEY_BASE="$(bundle exec rake secret)" bundle exec rake assets:precomp # Expose port 80. EXPOSE 80 +# Sets the footer of greenlight application with current build version +ARG version_code +ENV VERSION_CODE=$version_code + # Start the application. CMD ["bin/start"]