From 5f0f694bae22aab0ecc4a6656377d92ce8f8ea2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20DECOOL?= <contact@jdecool.fr> Date: Sun, 24 Apr 2022 08:39:15 +0200 Subject: [PATCH] Fix s3cmd image build --- s3cmd/Dockerfile | 2 +- s3cmd/install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/s3cmd/Dockerfile b/s3cmd/Dockerfile index 4c3327f..5117f7e 100644 --- a/s3cmd/Dockerfile +++ b/s3cmd/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.7 +FROM alpine:3.15 LABEL maintainer="Johannes Schickling <schickling.j@gmail.com>" ADD install.sh install.sh diff --git a/s3cmd/install.sh b/s3cmd/install.sh index 6bc855e..9ce0764 100644 --- a/s3cmd/install.sh +++ b/s3cmd/install.sh @@ -5,11 +5,11 @@ set -eo pipefail # install s3cmd apk update -apk add --no-cache python py-pip py-setuptools git ca-certificates +apk add --no-cache python3 py-pip py-setuptools git ca-certificates pip install python-magic git clone https://github.com/s3tools/s3cmd.git /tmp/s3cmd cd /tmp/s3cmd -python setup.py install +python3 setup.py install apk del git rm -rf /tmp/s3cmd