mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
USE COPY statement instead of ADD (#5336)
This commit is contained in:
committed by
Misty Stanley-Jones
parent
1d39f3d624
commit
27b1e00875
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user