From ee01698be3a675f2b76fbf96ed5d098d95c744f0 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Tue, 19 Apr 2016 13:08:31 -0400 Subject: [PATCH] Dockerfile: Prefer COPY instead of ADD See https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#add-or-copy --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index aa946a5..607aa9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,8 +25,8 @@ RUN chmod 755 /usr/local/bin/* # All builds will be done by user aosp RUN groupadd -r aosp && useradd --create-home -g aosp aosp -ADD gitconfig /home/aosp/.gitconfig -ADD ssh_config /home/aosp/.ssh/config +COPY gitconfig /home/aosp/.gitconfig +COPY ssh_config /home/aosp/.ssh/config RUN chown aosp:aosp /home/aosp/.gitconfig # The persistent data will be in these two directories, everything else is