Use COPY instead of ADD for files and folders in Dockerfile

Reference:

- https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#add-or-copy
This commit is contained in:
Peter Dave Hello 2021-06-03 21:56:45 +08:00
parent 28595ed1cf
commit 720e262c68

View file

@ -22,7 +22,7 @@ MAINTAINER Marko Viitanen <fador@iki.fi>
# List of needed packages to be able to build kvazaar with autotools
ENV REQUIRED_PACKAGES automake autoconf libtool m4 build-essential git yasm pkgconf
ADD . kvazaar
COPY . kvazaar
# Run all the commands in one RUN so we don't have any extra history
# data in the image.
RUN apt-get update \