Skip to content

Conversation

@yellowred
Copy link
Contributor

Adding a Dockerfile to the example remote signing server so the example could be deployed to a cloud infra. Converge ENV names used in the remote signer to the Lightspark standard.

Towards LPT-224

Adding a Dockerfile to the example remote signing server so the example could be
deployed to a cloud infra. Converge ENV names used in the remote signer to the
Lightspark standard.

Towards LPT-224
@yellowred yellowred requested a review from zhenlu March 18, 2025 00:54
COPY --from=builder /usr/src/remote-signer/target/release/lightspark-remote-signing-server /usr/local/bin/remote-signing-server

# Install security updates
RUN apt-get update && apt-get -y upgrade && apt-get clean && rm -rf /var/lib/apt/lists
Copy link

Choose a reason for hiding this comment

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

The rm -rf /var/lib/apt/lists command is missing the trailing wildcard. To properly clean up all files in the apt lists directory, please update to:

RUN apt-get update && apt-get -y upgrade && apt-get clean && rm -rf /var/lib/apt/lists/*

This ensures complete cleanup of package metadata after the upgrade.

Suggested change
RUN apt-get update && apt-get -y upgrade && apt-get clean && rm -rf /var/lib/apt/lists
RUN apt-get update && apt-get -y upgrade && apt-get clean && rm -rf /var/lib/apt/lists/*

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pretty sure rm -rf does not need a trailing wildcard

@yellowred yellowred merged commit 03f18c0 into main Mar 18, 2025
2 checks passed
@yellowred yellowred deleted the oleg/remote_signing_dockerfile branch March 18, 2025 01:20
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.

3 participants