Skip to content

Support standalone Docker builds by internalizing repository cloning#83

Open
ale94mleon wants to merge 2 commits into
denizsafak:mainfrom
ale94mleon:fix-docker
Open

Support standalone Docker builds by internalizing repository cloning#83
ale94mleon wants to merge 2 commits into
denizsafak:mainfrom
ale94mleon:fix-docker

Conversation

@ale94mleon
Copy link
Copy Markdown

Description

Currently, the Dockerfile relies on COPY commands that require the user to have a local clone of the repository to provide supervisord.conf and start.sh. This adds friction for users who want to build the image directly from a URL or a single file.

This PR modifies the Dockerfile to

  • Remove the dependency on local files for the build process.

  • Perform a shallow clone of the repository into a temporary directory during the build.

  • Copy the required configuration files internally and clean up the temporary files to keep the image slim.

Benefits

Changes:

  • Replaced COPY docker/... commands with a logic block that uses git clone and cp.

  • Ensured proper cleanup of the temporary source folder to minimize layer size.

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.

1 participant