Use COPY instead of ADD in Dockerfile for folder

Ref:
https://docs.docker.com/develop/develop-images/#add-or-copy
This commit is contained in:
Peter Dave Hello 2019-10-05 20:51:51 +08:00
parent 447bf77dfe
commit 6f732a9957

View File

@ -20,7 +20,7 @@ ARG AUTO_UPGRADE=1
ENV AUTO_UPGRADE $AUTO_UPGRADE
#Install
ADD ./ /install_acme.sh/
COPY ./ /install_acme.sh/
RUN cd /install_acme.sh && ([ -f /install_acme.sh/acme.sh ] && /install_acme.sh/acme.sh --install || curl https://get.acme.sh | sh) && rm -rf /install_acme.sh/