Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
6f732a99
Commit
6f732a99
authored
Oct 05, 2019
by
Peter Dave Hello
Browse files
Use `COPY` instead of `ADD` in Dockerfile for folder
Ref:
https://docs.docker.com/develop/develop-images/#add-or-copy
parent
447bf77d
Changes
1
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
6f732a99
...
@@ -20,7 +20,7 @@ ARG AUTO_UPGRADE=1
...
@@ -20,7 +20,7 @@ ARG AUTO_UPGRADE=1
ENV
AUTO_UPGRADE $AUTO_UPGRADE
ENV
AUTO_UPGRADE $AUTO_UPGRADE
#Install
#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/
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/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment