]> git.openstreetmap.org Git - rails.git/commitdiff
Prefer COPY to ADD
authorRobert Koeze <rkoeze@gmail.com>
Sun, 6 Apr 2025 02:59:10 +0000 (22:59 -0400)
committerRobert Koeze <rkoeze@gmail.com>
Sun, 6 Apr 2025 02:59:10 +0000 (22:59 -0400)
Dockerfile

index 5df13d717e9cd655eec5c639315e282061725b43..884d69ef1e452f8ddafb0d08084b62d3f128de2c 100644 (file)
@@ -42,10 +42,10 @@ RUN mkdir -p /app
 WORKDIR /app
 
 # Install Ruby packages
 WORKDIR /app
 
 # Install Ruby packages
-ADD Gemfile Gemfile.lock /app/
+COPY Gemfile Gemfile.lock /app/
 RUN bundle install
 
 # Install NodeJS packages using yarn
 RUN bundle install
 
 # Install NodeJS packages using yarn
-ADD package.json yarn.lock /app/
-ADD bin/yarn /app/bin/
+COPY package.json yarn.lock /app/
+COPY bin/yarn /app/bin/
 RUN bundle exec bin/yarn install
 RUN bundle exec bin/yarn install