Error while building explorer service with docker-compute up --build on MacOS Big Sur.
Details:
Building explorer
[+] Building 1.1s (6/8)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/nginx:alpine 1.0s
=> [1/4] FROM docker.io/library/nginx:alpine@sha256:686aac2769fd6e7bab67663fd38750 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 35B 0.0s
=> ERROR [2/4] COPY dist /usr/share/nginx/html 0.0s
------
> [2/4] COPY dist /usr/share/nginx/html:
------
failed to compute cache key: "/dist" not found: not found
ERROR: Service 'explorer' failed to build
Dockerfile
FROM nginx:alpine
COPY dist /usr/share/nginx/html
RUN sed -i 's@NODE_ENV:"production",BASE_URL:"/"@NODE_URL:"/rpcnode/jsonrpc",CONNECTION_TYPE:"json_rpc"@g' /usr/share/nginx/html/js/*.js
COPY default.nginx /etc/nginx/conf.d/default.conf
docker-compose
...
explorer:
build: block-explorer-light
image: quorum-dev-quickstart/block-explorer-light:develop
depends_on:
- rpcnode
ports:
- 25000:80/tcp
networks:
quorum-dev-quickstart:
ipv4_address: 172.16.239.31
...
Error while building explorer service with
docker-compute up --buildon MacOS Big Sur.Details:
Dockerfile
docker-compose