From e5d574562f008d804d59cd740d9032f46e10cf49 Mon Sep 17 00:00:00 2001 From: Jonas Kaninda Date: Thu, 10 Oct 2024 09:52:44 +0200 Subject: [PATCH] fix: backup, restore, migrate script since the migration of base image from Ubuntu to alpine --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a7d3c7b..7553a48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,7 +53,7 @@ ENV VERSION=${appVersion} LABEL author="Jonas Kaninda" LABEL version=${appVersion} -RUN apk --update add --no-cache postgresql-client tzdata +RUN apk --update add --no-cache postgresql-client tzdata ca-certificates RUN mkdir $WORKDIR RUN mkdir $BACKUPDIR RUN mkdir $TEMPLATES_DIR @@ -69,14 +69,14 @@ RUN chmod +x /usr/local/bin/pg-bkup RUN ln -s /usr/local/bin/pg-bkup /usr/local/bin/bkup # Create the backup script and make it executable -RUN echo '#!/bin/sh\n/usr/local/bin/pg-bkup backup "$@"' > /usr/local/bin/backup && \ +RUN printf '#!/bin/sh\n/usr/local/bin/pg-bkup backup "$@"' > /usr/local/bin/backup && \ chmod +x /usr/local/bin/backup # Create the restore script and make it executable -RUN echo '#!/bin/sh\n/usr/local/bin/pg-bkup restore "$@"' > /usr/local/bin/restore && \ +RUN printf '#!/bin/sh\n/usr/local/bin/pg-bkup restore "$@"' > /usr/local/bin/restore && \ chmod +x /usr/local/bin/restore # Create the migrate script and make it executable -RUN echo '#!/bin/sh\n/usr/local/bin/pg-bkup migrate "$@"' > /usr/local/bin/migrate && \ +RUN printf '#!/bin/sh\n/usr/local/bin/pg-bkup migrate "$@"' > /usr/local/bin/migrate && \ chmod +x /usr/local/bin/migrate WORKDIR $WORKDIR