Skip to content

Conversation

@pm47
Copy link
Member

@pm47 pm47 commented May 12, 2025

This a follow-up to #161, specifically:

The goal of using the JVM on docker was for compatibility with ARM. Once we support native ARM on Linux (#157), we could potentially move back to Alpine with native phoenixd, an even smaller footprint than before.

I didn't go with Alpine because it isn't glibc based and we could run into compat issues. Nevertheless, with Debian slim the image size has been reduced from 230MB to 60MB (-75%).

Cross-platform build:

docker buildx build --platform linux/amd64,linux/arm64 -t acinq/phoenixd:0.6.0 --push .docker

From now on the image will be published on docker hub: https://hub.docker.com/r/acinq/phoenixd.

pm47 added 4 commits May 12, 2025 17:44
Keep it crossplatform using `TARGETPLATFORM`.

Usage: `docker buildx build --platform linux/amd64,linux/arm64 --load .docker/`
RUN mkdir -p /phoenix/.phoenix
# Expose default data directory as VOLUME
VOLUME [ "/phoenix" ]
VOLUME [ "/phoenix/.phoenix" ]
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that we are now exposing the .phoenix directory only.

@pm47 pm47 merged commit 7765a2f into master May 12, 2025
@pm47 pm47 deleted the docker-native branch May 12, 2025 16:23
@pm47
Copy link
Member Author

pm47 commented May 12, 2025

cc @sethforprivacy might be interesting to you

@sethforprivacy
Copy link
Contributor

cc @sethforprivacy might be interesting to you

Amazing, thank you for the ping! I'll archive my repo/image and point people to use the official one now :)

P.S. - the proper link to the new image for people outside your org is https://hub.docker.com/r/acinq/phoenixd, the other one forces auth and ends in a permission denied warning 😅

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