Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build fails #159

Open
Janaka-Steph opened this issue Mar 28, 2022 · 1 comment
Open

Docker build fails #159

Janaka-Steph opened this issue Mar 28, 2022 · 1 comment

Comments

@Janaka-Steph
Copy link

Janaka-Steph commented Mar 28, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants