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

v2
Jinesh 4 years ago committed by Jesus Federico
parent a5fd4a08b5
commit 7c20decafe
  1. 8
      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"]