1
0
mirror of https://github.com/kylemanna/docker-aosp synced 2025-06-07 07:56:25 +00:00

Dockerfile: Prefer COPY instead of ADD

See https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#add-or-copy
This commit is contained in:
Jean-Christophe Fillion-Robin 2016-04-19 13:08:31 -04:00
parent 9934955ab3
commit ee01698be3

View File

@ -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