bitkub-chain / bkcscan

Bitkub Chain Explorer
https://www.bkcscan.com
GNU General Public License v3.0
10 stars 7 forks source link

Docker is unable to find the file mix.exs in the directory apps/indexer/ #5

Open avenbreaks opened 1 year ago

avenbreaks commented 1 year ago

The error message provided is from a Dockerfile build process and indicates that Docker is unable to find the file mix.exs in the directory apps/indexer/.

To Reproduce Steps to reproduce the behavior: docker build -f docker/Dockerfile -t bkc-explorer:v2 ../

Expected behavior perfectly running compile dockerfile

Screenshots image

Desktop (please complete the following information):

Additional Logs

 => [internal] load build context                                                                                                                                                  14.0s
 => => transferring context: 511.19MB                                                                                                                                              13.9s
 => CACHED [ 2/15] RUN mix do local.hex --force, local.rebar --force                                                                                                                0.0s
 => CACHED [ 3/15] RUN apk --no-cache --update add alpine-sdk gmp-dev automake libtool inotify-tools autoconf python3                                                               0.0s
 => CACHED [ 4/15] RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y                                                                                      0.0s
 => ERROR [ 5/15] ADD mix.exs mix.lock ./                                                                                                                                           0.0s
 => ERROR [ 6/15] ADD apps/block_scout_web/mix.exs ./apps/block_scout_web/                                                                                                          0.0s
 => ERROR [ 7/15] ADD apps/explorer/mix.exs ./apps/explorer/                                                                                                                        0.0s
 => ERROR [ 8/15] ADD apps/ethereum_jsonrpc/mix.exs ./apps/ethereum_jsonrpc/                                                                                                        0.0s
 => ERROR [ 9/15] ADD apps/indexer/mix.exs ./apps/indexer/                                                                                                                          0.0s
------
 > [ 5/15] ADD mix.exs mix.lock ./:
------
------
 > [ 6/15] ADD apps/block_scout_web/mix.exs ./apps/block_scout_web/:
------
------
 > [ 7/15] ADD apps/explorer/mix.exs ./apps/explorer/:
------
------
 > [ 8/15] ADD apps/ethereum_jsonrpc/mix.exs ./apps/ethereum_jsonrpc/:
------
------
 > [ 9/15] ADD apps/indexer/mix.exs ./apps/indexer/:
------
Dockerfile:22
--------------------
  20 |     ADD apps/explorer/mix.exs ./apps/explorer/
  21 |     ADD apps/ethereum_jsonrpc/mix.exs ./apps/ethereum_jsonrpc/
  22 | >>> ADD apps/indexer/mix.exs ./apps/indexer/
  23 |     
  24 |     RUN mix do deps.get, local.rebar --force, deps.compile
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 3167985e-2251-4449-a745-403a9dfc4a38::ptsgw1uk242um6en9px72l4ef: "/apps/indexer/mix.exs": not found
akangaziz commented 9 months ago

no response?