From 68fc785123dad3cd99209ee904fd5c0634bdecc5 Mon Sep 17 00:00:00 2001 From: Vladimir Levin Date: Sun, 6 Aug 2023 20:39:49 +0900 Subject: [PATCH] Small revamp --- Dockerfile | 4 ++-- entrypoint.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e2d6b48..5863d2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ LABEL authors="Vladimir Levin" RUN curl https://dl.min.io/client/mc/release/linux-amd64/mc \ --create-dirs \ - -o $HOME/minio-binaries/mc -RUN chmod +x $HOME/minio-binaries/mc + -o /minio-binaries/mc +RUN chmod +x /minio-binaries/mc COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh index 9ef08ac..a80aa2a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/sh -l -export PATH=$PATH:$HOME/minio-binaries/ +export PATH=$PATH:/minio-binaries/ insecure_option="" if [[ "$YA_INSECURE" == "true" ]]; then @@ -12,5 +12,5 @@ if [[ "$YA_RECURSIVE" == "true" ]]; then recursive_option="--recursive" fi -$HOME/minio-binaries/mc alias set ${insecure_option:+"$insecure_option"} target "$YA_ENDPOINT" "$YA_ACCESS_KEY" "$YA_SECRET_KEY" -$HOME/minio-binaries/mc ${insecure_option:+"$insecure_option"} cp ${recursive_option:+"$recursive_option"} $1 "target/$2" \ No newline at end of file +mc alias set ${insecure_option:+"$insecure_option"} target "$YA_ENDPOINT" "$YA_ACCESS_KEY" "$YA_SECRET_KEY" +mc ${insecure_option:+"$insecure_option"} cp ${recursive_option:+"$recursive_option"} $1 "target/$2" \ No newline at end of file