USE COPY statement instead of ADD (#5336)

This commit is contained in:
jottr 2017-11-20 19:02:20 +01:00 committed by Misty Stanley-Jones
parent 1d39f3d624
commit 27b1e00875
1 changed files with 3 additions and 3 deletions

View File

@ -20,10 +20,10 @@ Dockerfile consists of:
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
RUN mkdir /myapp
WORKDIR /myapp
ADD Gemfile /myapp/Gemfile
ADD Gemfile.lock /myapp/Gemfile.lock
COPY Gemfile /myapp/Gemfile
COPY Gemfile.lock /myapp/Gemfile.lock
RUN bundle install
ADD . /myapp
COPY . /myapp
That'll put your application code inside an image that will build a container
with Ruby, Bundler and all your dependencies inside it. For more information on