Skip to content

Commit

Permalink
Integrate the chmos command into the copy to avoid additional layer size
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan-Hekary authored Feb 25, 2025
1 parent cd4cbbf commit 701739c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions build/docker/full/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ FROM releases-docker.jfrog.io/jfrog-ecosystem-integration-env:latest
ARG image_name=jfrog-cli-full
ARG cli_executable_name
ENV CI true
COPY --from=builder /${image_name}/${cli_executable_name} /usr/local/bin/${cli_executable_name}
RUN chmod +x /usr/local/bin/${cli_executable_name}
COPY --chmod=755 --from=builder /${image_name}/${cli_executable_name} /usr/local/bin/${cli_executable_name}
# Install bash completion
RUN ${cli_executable_name} completion bash >> /etc/bash_completion
3 changes: 1 addition & 2 deletions build/docker/slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ ARG image_name=jfrog-cli
ARG cli_executable_name
ENV CI true
RUN apk add --no-cache bash tzdata ca-certificates curl jq
COPY --from=builder /${image_name}/${cli_executable_name} /usr/local/bin/${cli_executable_name}
RUN chmod +x /usr/local/bin/${cli_executable_name}
COPY --chmod=755 --from=builder /${image_name}/${cli_executable_name} /usr/local/bin/${cli_executable_name}

0 comments on commit 701739c

Please sign in to comment.