Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

refactor(docker): simplify Dockerfile, fix arm64 #159

Merged
merged 1 commit into from
Jul 4, 2023
Merged

Conversation

lidel
Copy link
Collaborator

@lidel lidel commented Jun 29, 2023

This PR aims to remove some overengineering around tini and su-exec (most likely copied form ipfs-cluster/kubo)
and use arch-specific prebuilt binaries from alpine + have static binary that is less prone to errors due to annual glibc breakfest.

I've tested this commit in staging and produced ipfs/bifrost-gateway:staging-2023-06-29-34a5f70 runs fine on my Rpi4 (ARM64).

The size does not differ much, imo independence of glibc and ARM64 fix are worth it.

ipfs/bifrost-gateway:staging-latest	44.8MB (this PR)
ipfs/bifrost-gateway:main-latest	44.1MB (old setup)

this aims to remove tini  an su-exec complexity and use arch-specific
binaries from alpine instead
Copy link
Collaborator

@willscott willscott left a comment

Choose a reason for hiding this comment

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

seems good from the perspective of less complexity alone

@lidel lidel merged commit 453fd72 into main Jul 4, 2023
@lidel lidel deleted the fix/arm64-images branch July 4, 2023 13:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants