From f05641c3c6dffcefe05080e151be352e9f0ee263 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 1 Sep 2024 04:25:07 -0700 Subject: [PATCH] fix: /usr/bin path permissions for docker --- Dockerfile | 2 ++ Dockerfile.dev | 12 ------------ Dockerfile.hotfix | 2 ++ Dockerfile.release | 2 ++ Dockerfile.release.fips | 2 ++ Dockerfile.release.old_cpu | 2 ++ 6 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 Dockerfile.dev diff --git a/Dockerfile b/Dockerfile index 3318f7435..9ee621c4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM minio/minio:latest +RUN chmod 1777 /usr/bin + COPY ./minio /usr/bin/minio COPY dockerscripts/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh diff --git a/Dockerfile.dev b/Dockerfile.dev deleted file mode 100644 index 6b98cd4a6..000000000 --- a/Dockerfile.dev +++ /dev/null @@ -1,12 +0,0 @@ -FROM minio/minio:latest - -ENV PATH=/opt/bin:$PATH - -COPY ./minio /opt/bin/minio -COPY dockerscripts/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh - -ENTRYPOINT ["/usr/bin/docker-entrypoint.sh"] - -VOLUME ["/data"] - -CMD ["minio"] diff --git a/Dockerfile.hotfix b/Dockerfile.hotfix index 2acc641d4..4097141fa 100644 --- a/Dockerfile.hotfix +++ b/Dockerfile.hotfix @@ -53,6 +53,8 @@ ENV MINIO_ACCESS_KEY_FILE=access_key \ MINIO_CONFIG_ENV_FILE=config.env \ MC_CONFIG_DIR=/tmp/.mc +RUN chmod 1777 /usr/bin + COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=build /go/bin/minio* /usr/bin/ COPY --from=build /go/bin/mc* /usr/bin/ diff --git a/Dockerfile.release b/Dockerfile.release index d94eb6127..4756e9b8f 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -53,6 +53,8 @@ ENV MINIO_ACCESS_KEY_FILE=access_key \ MINIO_CONFIG_ENV_FILE=config.env \ MC_CONFIG_DIR=/tmp/.mc +RUN chmod 1777 /usr/bin + COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=build /go/bin/minio* /usr/bin/ COPY --from=build /go/bin/mc* /usr/bin/ diff --git a/Dockerfile.release.fips b/Dockerfile.release.fips index 8708e75af..25263f067 100644 --- a/Dockerfile.release.fips +++ b/Dockerfile.release.fips @@ -51,6 +51,8 @@ ENV MINIO_ACCESS_KEY_FILE=access_key \ MINIO_UPDATE_MINISIGN_PUBKEY="RWTx5Zr1tiHQLwG9keckT0c45M3AGeHD6IvimQHpyRywVWGbP1aVSGav" \ MINIO_CONFIG_ENV_FILE=config.env +RUN chmod 1777 /usr/bin + COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=build /go/bin/minio* /usr/bin/ COPY --from=build /go/bin/mc* /usr/bin/ diff --git a/Dockerfile.release.old_cpu b/Dockerfile.release.old_cpu index f6742a4b8..193b00c6d 100644 --- a/Dockerfile.release.old_cpu +++ b/Dockerfile.release.old_cpu @@ -53,6 +53,8 @@ ENV MINIO_ACCESS_KEY_FILE=access_key \ MINIO_CONFIG_ENV_FILE=config.env \ MC_CONFIG_DIR=/tmp/.mc +RUN chmod 1777 /usr/bin + COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=build /go/bin/minio* /usr/bin/ COPY --from=build /go/bin/mc* /usr/bin/