Skip to content

fix: Fix ARM64 image - #2

Open
towa48 wants to merge 7 commits into
FilebrowserNext:mainfrom
towa48:arm64
Open

towa48 wants to merge 7 commits into
FilebrowserNext:mainfrom
towa48:arm64

Conversation

@towa48

@towa48 towa48 commented Oct 25, 2026

Copy link
Copy Markdown

Description

The original arm64 build starts with error

/bin/filebrowser: line 1: syntax error: unexpected ")"

Additional Information

The original image for arm64 contains amd64 binary because the ${TARGETARCH} ARG is set to amd64.
The root cause: the default value is overrides buildx variable.

How to check the issue

  1. Modify docker-compose for ARM64 by
entrypoint:
  - /bin/sh
stdin_open: true
tty: true
  1. Start the container and check block of bites for binary file
$dd if=/bin/filebrowser bs=1 skip=18 count=2 2>/dev/null | od -An -t x1
  1. For amd64 it will be 3e00 and for arm64 it will be b700

The second check

Or simply add RUN echo "The target architecture is ${TARGETARCH}" to Dockerfile.
And then check the ACTION logs for linux/arm64 build.
Dont forget to clear traces to remove additional image layer.

Checklist

Before submitting your PR, please indicate which issues are either fixed or closed by this PR. See GitHub Help: Closing issues using keywords.
/filebrowser/blob/master/README.md)

  • I am aware that translations MUST be made through Transifex and that this PR is NOT a translation update
  • I am making a PR against the master branch.
  • I am sure File Browser can be successfully built.

@towa48 towa48 changed the title Fix ARM64 build fix: Fix ARM64 image Oct 25, 2026

This branch has not been deployed

No deployments
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