Kernel panic when deploying from windows but works from a mac

Hi,

We are having an issue with deploying a phoenix app to fly.io.
The deployment works if done from a mac with flyctl deploy --remote-only
but using the same command from a windows machine we get the following error:

Versions from mac where deploying works:
Erlang/OTP 25 [erts-13.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit] [dtrace] [aarch64-apple-darwin21.6.0]
Elixir 1.14.0
Phoenix 1.6.11
flyctl v0.0.406 darwin/arm64 Commit: ba78bd6f BuildDate: 2022-10-07T23:28:22Z

Versions from windows where deployment doesn’t work:
Erlang/OTP 25 [erts-13.1.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit:ns] [win32]
Elixir 1.14.0
Phoenix 1.6.11
flyctl.exe v0.0.406 windows/amd64 Commit: ba78bd6f BuildDate: 2022-10-08T01:53:38Z

Dockerfile versions. (modified to use ubuntu instead of debian)
ARG ELIXIR_VERSION=1.14.0
ARG OTP_VERSION=25.1.1
ARG UBUNTU_VERSION=jammy-20220428
ARG BUILDER_IMAGE=“hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-ubuntu-${UBUNTU_VERSION}”
ARG RUNNER_IMAGE=“ubuntu:${UBUNTU_VERSION}”

...
--> This release will not be available until the release command succeeds.
         Starting instance
         Configuring virtual machine
         Pulling container image
         Unpacking image
         Preparing kernel init
         Starting init (commit: 249766e)...
         [    0.221095] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
         [    0.224105]  panic+0xfb/0x2bc
         [    0.224491]  do_exit.cold+0x60/0xb0
         [    0.229656] RSP: 002b:00007ffc1cf36708 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
         [    0.231698] RDX: 00007f2c12b49540 RSI: 0000000000000000 RDI: 0000000000000001
         [    0.232516] RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
         [    0.233645] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc1cf36768
         [    0.235932] Rebooting in 1 seconds..
         Starting instance
         Configuring virtual machine
         Pulling container image
         Unpacking image
         Preparing kernel init
         Configuring firecracker
         Starting virtual machine
         Starting init (commit: 249766e)...
         Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
         no label, UUID=9e4d0a2d-69c2-431b-98f6-975943ae576e
         Preparing to run: `/app/bin/migrate` as nobody
         Error: UnhandledIoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })
         [    0.221095] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
         [    0.222165] CPU: 0 PID: 1 Comm: init Not tainted 5.12.2 #1
         [    0.222863] Call Trace:
         [    0.223144]  show_stack+0x52/0x58
         [    0.223669]  dump_stack+0x6b/0x86
         [    0.224105]  panic+0xfb/0x2bc
         [    0.224491]  do_exit.cold+0x60/0xb0
         [    0.224943]  do_group_exit+0x3b/0xb0
         [    0.225400]  __x64_sys_exit_group+0x18/0x20
         [    0.225971]  do_syscall_64+0x38/0x50
         [    0.226481]  entry_SYSCALL_64_after_hwframe+0x44/0xae
         [    0.227094] RIP: 0033:0x7f2c12a6d489
         [    0.227532] Code: eb ef 48 8b 76 28 e9 a5 03 00 00 64 48 8b 04 25 00 00 00 00 48 8b b0 b0 00 00 00 e9 af ff ff ff 48 63 ff b8 e7 00 00 00 0f 05 <ba> 3c 00 00 00 48 89 d0 0f 05 eb f9 66 2e 0f 1f 84 00 00 00 00 00
         [    0.229656] RSP: 002b:00007ffc1cf36708 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
         [    0.230803] RAX: ffffffffffffffda RBX: 00007f2c128d1160 RCX: 00007f2c12a6d489
         [    0.231698] RDX: 00007f2c12b49540 RSI: 0000000000000000 RDI: 0000000000000001
         [    0.232516] RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
         [    0.233645] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc1cf36768
         [    0.234486] R13: 00007ffc1cf36778 R14: 0000000000000000 R15: 0000000000000000
         [    0.235492] Kernel Offset: disabled
         [    0.235932] Rebooting in 1 seconds..
         Starting instance
         Configuring virtual machine
         Pulling container image
         Unpacking image
         Preparing kernel init
         Configuring firecracker
         Starting virtual machine
         Starting init (commit: 249766e)...
         Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
         no label, UUID=9e4d0a2d-69c2-431b-98f6-975943ae576e
         Preparing to run: `/app/bin/migrate` as nobody
         Error: UnhandledIoError(Os { code: 2, kind: NotFound, message: "No such file or directory" })
         [    0.221095] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
         [    0.222165] CPU: 0 PID: 1 Comm: init Not tainted 5.12.2 #1
         [    0.222863] Call Trace:
         [    0.223144]  show_stack+0x52/0x58
         [    0.223669]  dump_stack+0x6b/0x86
         [    0.224105]  panic+0xfb/0x2bc
         [    0.224491]  do_exit.cold+0x60/0xb0
         [    0.224943]  do_group_exit+0x3b/0xb0
         [    0.225400]  __x64_sys_exit_group+0x18/0x20
         [    0.225971]  do_syscall_64+0x38/0x50
         [    0.226481]  entry_SYSCALL_64_after_hwframe+0x44/0xae
         [    0.227094] RIP: 0033:0x7f2c12a6d489
         [    0.227532] Code: eb ef 48 8b 76 28 e9 a5 03 00 00 64 48 8b 04 25 00 00 00 00 48 8b b0 b0 00 00 00 e9 af ff ff ff 48 63 ff b8 e7 00 00 00 0f 05 <ba> 3c 00 00 00 48 89 d0 0f 05 eb f9 66 2e 0f 1f 84 00 00 00 00 00
         [    0.229656] RSP: 002b:00007ffc1cf36708 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
         [    0.230803] RAX: ffffffffffffffda RBX: 00007f2c128d1160 RCX: 00007f2c12a6d489
         [    0.231698] RDX: 00007f2c12b49540 RSI: 0000000000000000 RDI: 0000000000000001
         [    0.232516] RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000
         [    0.233645] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffc1cf36768
         [    0.234486] R13: 00007ffc1cf36778 R14: 0000000000000000 R15: 0000000000000000
         [    0.235492] Kernel Offset: disabled
         [    0.235932] Rebooting in 1 seconds..

I found this article kernel panic when deploying app - #3 by joges
but if i understand correct newer phoenix versions had a fix for this already and I’m assuming if we had this problem then we could not deploy from any machine.