altered build steps to utilize the cloud build cache (#728)

This commit is contained in:
Jinesh 2019-08-06 14:55:05 -04:00 committed by Jesus Federico
parent a5fd4a08b5
commit 7c20decafe
1 changed files with 4 additions and 4 deletions

View File

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