stacks-core icon indicating copy to clipboard operation
stacks-core copied to clipboard

Consider creating a separate Dockerfile for the Stacks Signer

Open CharlieC3 opened this issue 7 months ago • 1 comments

Currently, a single Dockerfile is used to create the image for both the Stacks Node and Stacks Signer by using special logic at the end of the file to determine which binary it should run.

As noted here, this decision was made in an effort to keep things DRY, but on the contrary this may be introducing an anti-pattern for maintaining Dockerfiles and some misdirection, which may make it more difficult to contribute or debug CI workflows for those unfamiliar with the process.

It may make more sense in this case to create a separate Dockerfile specifically for the Stacks Signer image. Despite the small amount of duplication added, it may make it easier for others to understand the CI and release process.

CharlieC3 avatar Jul 22 '24 16:07 CharlieC3