Docker build error
Opened this issue · 1 comments
ricm916 commented
Trying to install using Docker instructions provided
Copy of error log output:
sudo docker build -t btc-rpc-explorer .
[+] Building 11.1s (13/13) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 231B 0.0s
=> [internal] load metadata for docker.io/library/node:16-alpine 0.8s
=> [internal] load metadata for docker.io/library/node:16 0.8s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [builder 1/4] FROM docker.io/library/node:16@sha256:f77a1aef2da8d83e45ec990f45df50f1a286c5fe8bbfb8c6e4246c6389705c0b 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 14.88kB 0.0s
=> [stage-1 1/4] FROM docker.io/library/node:16-alpine@sha256:a1f9d027912b58a7c75be7716c97cfbc6d3099f3a97ed84aa490be9dee20e787 0.0s
=> CACHED [stage-1 2/4] WORKDIR /workspace 0.0s
=> CACHED [builder 2/4] WORKDIR /workspace 0.0s
=> CACHED [builder 3/4] COPY . . 0.0s
=> CACHED [builder 4/4] RUN npm install 0.0s
=> CACHED [stage-1 3/4] COPY --from=builder /workspace . 0.0s
=> ERROR [stage-1 4/4] RUN apk --update add git 10.2s
------
> [stage-1 4/4] RUN apk --update add git:
0.215 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
5.220 WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.18/main: temporary error (try again later)
5.220 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
10.22 WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.18/community: temporary error (try again later)
10.22 ERROR: unable to select packages:
10.22 git (no such package):
10.22 required by: world[git]
------
Dockerfile:9
--------------------
7 | WORKDIR /workspace
8 | COPY --from=builder /workspace .
9 | >>> RUN apk --update add git
10 | CMD npm start
11 | EXPOSE 3002
--------------------
ERROR: failed to solve: process "/bin/sh -c apk --update add git" did not complete successfully: exit code: 1
Environment (please complete the following information):
- Bitcoin Core / Node Version [v27.0.0]
- NodeJS Version [v18.19.0]
- Code Version / Commit [e.g. [adb8071]
- Installation Method [docker build -r btc-rpc-explorer]
- OS [Debian v12.5]
- Docker [v26.1.3]
Configuration file content
Nothing to provide -- haven't even made it far enough for configuation to apply!
To Reproduce
Steps to reproduce the behavior:
sudo docker build -t btc-rpc-explorer .
Screenshots or Log Output
log output above in description
Additional context
Nothing to add.
schildbach commented
This doesn't seem to be a problem on current master, but my PR would fix it anyway: #688