From c056879df4b717cdd0ccd1a1993e7ca519c50ad9 Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 3 May 2023 16:26:55 +0200 Subject: [PATCH] optimize borg dockerfile Signed-off-by: Zoey --- Containers/borgbackup/Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Containers/borgbackup/Dockerfile b/Containers/borgbackup/Dockerfile index 3aac5df4..da93391a 100644 --- a/Containers/borgbackup/Dockerfile +++ b/Containers/borgbackup/Dockerfile @@ -13,11 +13,8 @@ RUN set -ex; \ VOLUME /root -COPY start.sh /usr/bin/ -COPY backupscript.sh / -RUN chmod +x /usr/bin/start.sh; \ - chmod +x /backupscript.sh +COPY --chmod=775 start.sh /usr/bin/start.sh +COPY --chmod=775 backupscript.sh /backupscript.sh -USER root ENTRYPOINT ["start.sh"] LABEL com.centurylinklabs.watchtower.monitor-only="true"