From 727ed5db04ccb9c718f704edc9feeb267b8154b2 Mon Sep 17 00:00:00 2001 From: Cioclea Doru Octavian Date: Fri, 5 Apr 2024 08:57:58 +0300 Subject: [PATCH] fix(backup): crlf script processing --- docker/backup/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/backup/Dockerfile b/docker/backup/Dockerfile index 77b93c966..acff870b6 100644 --- a/docker/backup/Dockerfile +++ b/docker/backup/Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu:latest # Install cron and PostgreSQL client -RUN apt-get update && apt-get install -y cron postgresql-client +RUN apt-get update && apt-get install -y cron postgresql-client dos2unix # Cleanup RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* @@ -10,6 +10,8 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ADD backup-script.sh /backup-script.sh ADD start-cron.sh /start-cron.sh + +RUN dos2unix /backup-script.sh /start-cron.sh # Make your scripts executable RUN chmod +x /backup-script.sh /start-cron.sh