Skip to content

Commit

Permalink
chore: Dockerfile: detect target architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
laur89 committed Nov 28, 2024
1 parent ab4c86d commit d2cb5c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ RUN pnpm i && pnpm lint && pnpm reformat-files && pnpm package

WORKDIR /usr/src/ferdium

RUN pnpm build --dir
RUN arch="$(dpkg --print-architecture)"; \
case "$arch" in \
*arm*) TARGET_ARCH=arm64 ;; \
*) TARGET_ARCH=x64 ;; \
esac; \
pnpm build --$TARGET_ARCH --dir

# --------------------------------------------------------------------------------------------

Expand Down

0 comments on commit d2cb5c8

Please sign in to comment.