Skip to content

Integrate the chmod command into the copy to avoid additional layer size #2888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}