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:
invario
2025-12-30 12:44:46 -05:00
parent 6f5a0c5d5e
commit 6a98b9f81e

View File

@@ -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 \