Eric P on Nostr: You could probably use the TARGETARCH arg to conditionally install it. Something like ...
You could probably use the TARGETARCH arg to conditionally install it.
Something like this might work:
RUN [ "$TARGETARCH" != "arm64" ] || apt-get install -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
Published at
2025-01-06 19:50:23Event JSON
{
"id": "04324a2b1cfbd6152e6f539d65dbf0671fd2993b4ed6e2c8a944ba43e12fac98",
"pubkey": "426f11348ff0e3eda2d5b906f9cb7d9743075ab85ebb3c15d57fb80b4e25ec3e",
"created_at": 1736193023,
"kind": 1,
"tags": [
[
"e",
"8b9eb284de35f99766905f0a8d09ea25c3d04dd5e839139781fcdfe6d895f4d2",
"wss://pyramid.fiatjaf.com/",
"root"
],
[
"e",
"a65ec1a18b1c444e40558a02a1e2f5035d6044d4ca3cba8640df3b29c49c693e",
"wss://purplerelay.com/",
"reply",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5"
],
[
"p",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5"
],
[
"p",
"7bdef7bdebb8721f77927d0e77c66059360fa62371fdf15f3add93923a613229"
]
],
"content": "You could probably use the TARGETARCH arg to conditionally install it.\n\nSomething like this might work:\nRUN [ \"$TARGETARCH\" != \"arm64\" ] || apt-get install -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu\n",
"sig": "d3658a288f359aa6ad8151e57d79ea8659934b44edd6055bb71d799096df41ab9e8adfad5992ad75992944871757a095b0e20ec57cd4531aa0f11924eaf550f2"
}