Browse Source
chown /acme.sh to non-root user and set HOME to /acme.sh
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
pull/6709/head
invario
2 days ago
No known key found for this signature in database
GPG Key ID: DEB3BD5A327B965
1 changed files with
4 additions and
0 deletions
-
Dockerfile
|
|
|
@ -20,6 +20,8 @@ ENV LE_WORKING_DIR=/acmebin |
|
|
|
|
|
|
|
ENV LE_CONFIG_HOME=/acme.sh |
|
|
|
|
|
|
|
ENV HOME=/acme.sh |
|
|
|
|
|
|
|
ARG AUTO_UPGRADE=1 |
|
|
|
|
|
|
|
ENV AUTO_UPGRADE=$AUTO_UPGRADE |
|
|
|
@ -36,6 +38,8 @@ RUN cd /install_acme.sh && ([ -f /install_acme.sh/acme.sh ] && /install_acme.sh/ |
|
|
|
|
|
|
|
RUN ln -s $LE_WORKING_DIR/acme.sh /usr/local/bin/acme.sh |
|
|
|
|
|
|
|
RUN chown -R acme:acme $LE_CONFIG_HOME |
|
|
|
|
|
|
|
RUN for verb in help \ |
|
|
|
version \ |
|
|
|
install \ |
|
|
|
|