mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-05-18 11:53:56 +08:00
chown /acme.sh to non-root user and set HOME to /acme.sh
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
This commit is contained in:
@@ -20,6 +20,8 @@ ENV LE_WORKING_DIR=/acmebin
|
|||||||
|
|
||||||
ENV LE_CONFIG_HOME=/acme.sh
|
ENV LE_CONFIG_HOME=/acme.sh
|
||||||
|
|
||||||
|
ENV HOME=/acme.sh
|
||||||
|
|
||||||
ARG AUTO_UPGRADE=1
|
ARG AUTO_UPGRADE=1
|
||||||
|
|
||||||
ENV AUTO_UPGRADE=$AUTO_UPGRADE
|
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 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 \
|
RUN for verb in help \
|
||||||
version \
|
version \
|
||||||
install \
|
install \
|
||||||
|
|||||||
Reference in New Issue
Block a user