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
f1c36185
Unverified
Commit
f1c36185
authored
Jun 17, 2021
by
neil
Committed by
GitHub
Jun 17, 2021
Browse files
Merge pull request #2526 from PeterDaveHello/Refactor_Dockerfile
Refactor Dockerfile
parents
3d72df46
6f732a99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
f1c36185
FROM
alpine:3.12
FROM
alpine:3.12
RUN
apk update
-f
\
RUN
apk
--no-cache
add
-f
\
&&
apk
--no-cache
add
-f
\
openssl
\
openssl
\
openssh-client
\
openssh-client
\
coreutils
\
coreutils
\
...
@@ -12,8 +11,7 @@ RUN apk update -f \
...
@@ -12,8 +11,7 @@ RUN apk update -f \
tzdata
\
tzdata
\
oath-toolkit-oathtool
\
oath-toolkit-oathtool
\
tar
\
tar
\
libidn
\
libidn
&&
rm
-rf
/var/cache/apk/
*
ENV
LE_CONFIG_HOME /acme.sh
ENV
LE_CONFIG_HOME /acme.sh
...
@@ -22,7 +20,7 @@ ARG AUTO_UPGRADE=1
...
@@ -22,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