Deploy failure: (Mix) httpc request failed with: {:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], :closed}]}

Dear all

I have been unsuccessfully trying to deploy Phoenix app + prostgresql in London region with fly launch.

There seems to be an issue for the remote builder to access external sources: the last fail is due to failing installation of hex.

Please see below:

? Would you like to deploy now? Yes
==> Building image
Remote builder fly-builder-muddy-shape-5768 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 0.0s (0/1)
[+] Building 28.5s (13/27)
 => [internal] load remote build context                                                                                                                          0.0s
 => copy /context /                                                                                                                                               0.1s
 => [internal] load metadata for docker.io/library/debian:bullseye-20220801-slim                                                                                  0.3s
 => [internal] load metadata for docker.io/hexpm/elixir:1.14.0-erlang-25.0.4-debian-bullseye-20220801-slim                                                        0.5s
 => [builder  1/17] FROM docker.io/hexpm/elixir:1.14.0-erlang-25.0.4-debian-bullseye-20220801-slim@sha256:cf8adcc00f80ae2d7ac417a62fe8138a3f8bf1b4e55d2a60f94b80  3.2s
 => => resolve docker.io/hexpm/elixir:1.14.0-erlang-25.0.4-debian-bullseye-20220801-slim@sha256:cf8adcc00f80ae2d7ac417a62fe8138a3f8bf1b4e55d2a60f94b80663440c440  0.0s
 => => sha256:cf8adcc00f80ae2d7ac417a62fe8138a3f8bf1b4e55d2a60f94b80663440c440 772B / 772B                                                                        0.0s
 => => sha256:209f0875608f8e44721f7bf32c056b3d282e8ebb70e57b1218b31cad39ba25e1 1.16kB / 1.16kB                                                                    0.0s
 => => sha256:65f04ead5fb13e52a5be7136607e3d07d479acd68317e8cbee4f47dbad312346 2.33kB / 2.33kB                                                                    0.0s
 => => sha256:1efc276f4ff952c055dea726cfc96ec6a4fdb8b62d9eed816bd2b788f2860ad7 31.37MB / 31.37MB                                                                  0.7s
 => => sha256:adf116327167d4f5af462c5e2d060a61b970589d8e0e92284fc6d2db04d22cec 14.35MB / 14.35MB                                                                  0.5s
 => => sha256:09d0092b35e56d3af6e1773e4e1287fff0b8a3a5a893513304d776b17559f21e 44.38MB / 44.38MB                                                                  0.7s
 => => sha256:16cb966efea4fb9ecec54d2f52775acae50143f6f133978efb537674ec09b62e 5.25MB / 5.25MB                                                                    0.4s
 => => extracting sha256:1efc276f4ff952c055dea726cfc96ec6a4fdb8b62d9eed816bd2b788f2860ad7                                                                         0.9s
 => => extracting sha256:adf116327167d4f5af462c5e2d060a61b970589d8e0e92284fc6d2db04d22cec                                                                         0.2s
 => => extracting sha256:09d0092b35e56d3af6e1773e4e1287fff0b8a3a5a893513304d776b17559f21e                                                                         0.8s
 => => extracting sha256:16cb966efea4fb9ecec54d2f52775acae50143f6f133978efb537674ec09b62e                                                                         0.1s
 => [stage-1 1/6] FROM docker.io/library/debian:bullseye-20220801-slim@sha256:a811e62769a642241b168ac34f615fb02da863307a14c4432cea8e5a0f9782b8                    1.7s
 => => resolve docker.io/library/debian:bullseye-20220801-slim@sha256:a811e62769a642241b168ac34f615fb02da863307a14c4432cea8e5a0f9782b8                            0.1s
 => => sha256:a811e62769a642241b168ac34f615fb02da863307a14c4432cea8e5a0f9782b8 1.85kB / 1.85kB                                                                    0.0s
 => => sha256:139a42fa3bde3e5bad6ae912aaaf2103565558a7a73afe6ce6ceed6e46a6e519 529B / 529B                                                                        0.0s
 => => sha256:6a8065e4ba130e5f581c9fb79da4f58bc6513fa65fae1aba12418be4c5a7ed76 1.46kB / 1.46kB                                                                    0.0s
 => => sha256:1efc276f4ff952c055dea726cfc96ec6a4fdb8b62d9eed816bd2b788f2860ad7 31.37MB / 31.37MB                                                                  0.7s
 => => extracting sha256:1efc276f4ff952c055dea726cfc96ec6a4fdb8b62d9eed816bd2b788f2860ad7                                                                        27.1s
 => [stage-1 2/6] RUN apt-get update -y && apt-get install -y libstdc++6 openssl libncurses5 locales   && apt-get clean && rm -f /var/lib/apt/lists/*_*           7.1s
 => [builder  2/17] RUN apt-get update -y && apt-get install -y build-essential git     && apt-get clean && rm -f /var/lib/apt/lists/*_*                         23.8s
 => [stage-1 3/6] RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen                                                                                1.8s
 => [stage-1 4/6] WORKDIR /app                                                                                                                                    0.0s
 => [stage-1 5/6] RUN chown nobody /app                                                                                                                           0.3s
 => [builder  3/17] WORKDIR /app                                                                                                                                  0.0s
 => ERROR [builder  4/17] RUN mix local.hex --force &&     mix local.rebar --force                                                                                1.0s
------
 > [builder  4/17] RUN mix local.hex --force &&     mix local.rebar --force:
#13 0.973 ** (Mix) httpc request failed with: {:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], :closed}]}
#13 0.973
#13 0.973 Could not install Hex because Mix could not download metadata at https://repo.hex.pm/installs/hex-1.x.csv.
#13 0.973
#13 0.973 Alternatively, you can compile and install Hex directly with this command:
#13 0.973
#13 0.973     mix archive.install github hexpm/hex branch latest
#13 0.973
------
Error failed to fetch an image or build from source: error building: executor failed running [/bin/sh -c mix local.hex --force &&     mix local.rebar --force]: exit code: 1

Can anyone point me in the right direction, please?

Looks like the same issue as this thread: mix local.hex --force network error in remote builder