From 0c6b7c34d2b66332dcd3beea915441d428af5930 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 9 Oct 2022 13:33:33 +0200 Subject: [PATCH] feat: use alpine base image --- Dockerfile | 4 ++-- scripts/ftp_backup.sh | 2 +- scripts/mysql_backup.sh | 2 +- scripts/postgres_backup.sh | 2 +- scripts/prefilebackup | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac5e6ce..193b161 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM debian +FROM alpine -RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y wget lftp mariadb-client postgresql-client +RUN apk add --no-cache wget lftp mariadb-client postgresql-client ARG CLIENT_VERSION diff --git a/scripts/ftp_backup.sh b/scripts/ftp_backup.sh index be95be9..696cc90 100644 --- a/scripts/ftp_backup.sh +++ b/scripts/ftp_backup.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh REMOTE_DIR="/" LOCAL_DIR="/backup/ftp" diff --git a/scripts/mysql_backup.sh b/scripts/mysql_backup.sh index 2fc71ad..72cec1d 100644 --- a/scripts/mysql_backup.sh +++ b/scripts/mysql_backup.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh BACKUP_DIR="/backup/database" diff --git a/scripts/postgres_backup.sh b/scripts/postgres_backup.sh index 6fe2a4a..1d6d2a7 100644 --- a/scripts/postgres_backup.sh +++ b/scripts/postgres_backup.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh BACKUP_DIR="/backup/database" diff --git a/scripts/prefilebackup b/scripts/prefilebackup index 2f333a9..c73c930 100644 --- a/scripts/prefilebackup +++ b/scripts/prefilebackup @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh if [[ -n "$DO_FTP_BACKUP" ]]; then sh /usr/local/etc/urbackup/ftp_backup.sh