pass github token as runtime arg

This commit is contained in:
bruckwubete
2018-07-04 17:06:52 -04:00
parent adeb844918
commit 930ed809f5
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,8 @@ RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
# Set an environment variable for the install location.
ENV RAILS_ROOT /usr/src/app
#Add token for private gems
RUN bundle config github.com ENV['GITHUB_TOKEN']
ARG GITHUB_TOKEN
RUN bundle config github.com $GITHUB_TOKEN
# Make the directory and set as working.
RUN mkdir -p $RAILS_ROOT