Skip to content

Add execute permission to docker-entrypoint.sh#464

Open
sahandilshan wants to merge 1 commit intowso2:7.1.xfrom
sahandilshan:7.1.x
Open

Add execute permission to docker-entrypoint.sh#464
sahandilshan wants to merge 1 commit intowso2:7.1.xfrom
sahandilshan:7.1.x

Conversation

@sahandilshan
Copy link

Purpose

Fix #463

@AnuradhaSK AnuradhaSK requested a review from Copilot July 7, 2025 15:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds execute permissions to the entrypoint script so the container can start without permission errors.

  • Adds a comment and a chmod +x command for docker-entrypoint.sh
  • Ensures the entrypoint is executable before the ENTRYPOINT instruction

EXPOSE 4000 9763 9443

# Provide execute permissions to docker-entrypoint.sh
RUN chmod +x /home/wso2carbon/docker-entrypoint.sh
Copy link

Copilot AI Jul 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider using COPY --chmod=+x when adding docker-entrypoint.sh earlier in the Dockerfile to set its permissions in the same layer and simplify the build.

Suggested change
RUN chmod +x /home/wso2carbon/docker-entrypoint.sh
# (Permissions are now set during the COPY operation above.)

Copilot uses AI. Check for mistakes.
EXPOSE 4000 9763 9443

# Provide execute permissions to docker-entrypoint.sh
RUN chmod +x /home/wso2carbon/docker-entrypoint.sh
Copy link

Copilot AI Jul 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] You could combine this RUN chmod +x with adjacent RUN commands to reduce the total number of layers and improve build efficiency.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants