From 7b79379377e307793661e1a54fca21242a34165d Mon Sep 17 00:00:00 2001 From: Or Noyman <17881579+fullkomnun@users.noreply.github.com> Date: Thu, 25 Jul 2024 14:07:54 +0300 Subject: [PATCH] replace '--chmod=+x' with '--chmod=755' for 'COPY' instructions in Dockerfile to be podman-friendly --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 83aa8c4b13..a325403e92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,7 +51,7 @@ COPY --from=deps /app/node_modules ./node_modules COPY . . # Generate .env.registry with ENVs list and save build args into .env file -COPY --chmod=+x ./deploy/scripts/collect_envs.sh ./ +COPY --chmod=755 ./deploy/scripts/collect_envs.sh ./ RUN ./collect_envs.sh ./docs/ENVS.md # Next.js collects completely anonymous telemetry data about general usage. @@ -105,14 +105,14 @@ COPY --from=builder /app/deploy/tools/feature-reporter/index.js ./feature-report # Copy scripts ## Entripoint -COPY --chmod=+x ./deploy/scripts/entrypoint.sh . +COPY --chmod=755 ./deploy/scripts/entrypoint.sh . ## ENV validator and client script maker -COPY --chmod=+x ./deploy/scripts/validate_envs.sh . -COPY --chmod=+x ./deploy/scripts/make_envs_script.sh . +COPY --chmod=755 ./deploy/scripts/validate_envs.sh . +COPY --chmod=755 ./deploy/scripts/make_envs_script.sh . ## Assets downloader -COPY --chmod=+x ./deploy/scripts/download_assets.sh . +COPY --chmod=755 ./deploy/scripts/download_assets.sh . ## Favicon generator -COPY --chmod=+x ./deploy/scripts/favicon_generator.sh . +COPY --chmod=755 ./deploy/scripts/favicon_generator.sh . COPY ./deploy/tools/favicon-generator ./deploy/tools/favicon-generator RUN ["chmod", "-R", "777", "./deploy/tools/favicon-generator"] RUN ["chmod", "-R", "777", "./public"]