Blockstream / gdk

Blockstream Green Development Kit
Other
156 stars 58 forks source link

Docker build fails #159

Open Janaka-Steph opened 2 years ago

Janaka-Steph commented 2 years ago

System: MacOS 12.3 - M1

▶ docker build -t greenaddress_sdk - < tools/Dockerfile

[+] Building 2.7s (8/9)
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 376B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/debian:bullseye@sha256  2.5s
 => [auth] library/debian:pull token for registry-1.docker.io              0.0s
 => [internal] load build context                                          0.0s
 => => transferring context: 2B                                            0.0s
 => CANCELED [1/4] FROM docker.io/library/debian:bullseye@sha256:45ee40a8  0.0s
 => => resolve docker.io/library/debian:bullseye@sha256:45ee40a844048c2f6  0.0s
 => => sha256:261c0783b9da74027da2b6f62206d4cca9b1e8706c1efb1 529B / 529B  0.0s
 => => sha256:723b4a01cd2a11283cbeb1aa41ff94c3e8f53dedaf2 1.48kB / 1.48kB  0.0s
 => => sha256:45ee40a844048c2f6d0105899c1a17733530b56d481 1.85kB / 1.85kB  0.0s
 => ERROR [2/4] COPY bullseye_deps.sh /deps.sh                             0.0s
 => ERROR [3/4] COPY requirements.txt /requirements.txt                    0.0s
------
 > [2/4] COPY bullseye_deps.sh /deps.sh:
------
------
 > [3/4] COPY requirements.txt /requirements.txt:
------
failed to compute cache key: "/requirements.txt" not found: not found
emanuelb commented 2 years ago

Try passing -f to specify the Dockerfile file instead, make sure the current working directory is gdk/tools as the files bullseye_deps.sh & requirements.txt are in it which your output show had errors in copying them, below command will build container:

git clone --depth 1 https://github.com/Blockstream/gdk;
cd gdk/tools;
podman build --rm -t greenaddress_sdk -f Dockerfile