protonmail-bridge-docker
protonmail-bridge-docker copied to clipboard
Fix build image
https://github.com/shenxn/protonmail-bridge-docker/blob/3f04e67e427ba2775bb5083e2a0a449cd7c02e6b/build/Dockerfile#L19
Jammy is not available for linux/riscv64
, see https://hub.docker.com/_/ubuntu/tags?page=1&name=jammy
And note that no ubuntu images are available for linux/riscv64
. You need to remove that platform from
https://github.com/shenxn/protonmail-bridge-docker/blob/5b52d7c9aa49756fe6fdf64c2ba99a69e9493ba1/.github/workflows/build.yaml#L19
=> ERROR [protonmail-bridge build 3/6] RUN ARCH=$(uname -m) && if [ "${ARCH}" = "x86_64" ]; then ARCH="amd64"; fi && curl -sL https://go.dev/dl/go1.22.0.linux-${ARCH}.tar.gz | tar -C /usr/l 0.5s
------
> [protonmail-bridge build 3/6] RUN ARCH=$(uname -m) && if [ "${ARCH}" = "x86_64" ]; then ARCH="amd64"; fi && curl -sL https://go.dev/dl/go1.22.0.linux-${ARCH}.tar.gz | tar -C /usr/local -xzf -:
0.467
0.467 gzip: stdin: not in gzip format
0.468 tar: Child returned status 1
0.468 tar: Error is not recoverable: exiting now
------
failed to solve: process "/bin/sh -c ARCH=$(uname -m) && if [ \"${ARCH}\" = \"x86_64\" ]; then ARCH=\"amd64\"; fi && curl -sL https://go.dev/dl/go${GO_VERSION}.linux-${ARCH}.tar.gz | tar -C /usr/local -xzf -" did not complete successfully: exit code: 2