From 27b1e00875230c8d115c353ebe1786fdd8374eaf Mon Sep 17 00:00:00 2001 From: jottr Date: Mon, 20 Nov 2017 19:02:20 +0100 Subject: [PATCH] USE COPY statement instead of ADD (#5336) --- compose/rails.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compose/rails.md b/compose/rails.md index f687ee8006..c27a85b56e 100644 --- a/compose/rails.md +++ b/compose/rails.md @@ -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