felixmosh / bull-board

🎯 Queue background jobs inspector
MIT License
2.13k stars 342 forks source link

Dockerfile is outdated #754

Open PabloCastellano opened 1 month ago

PabloCastellano commented 1 month ago

Hi! I've tried to build the docker image and it fails because the website directory doesn't exist anymore.

I'd like to fix it and contribute with a pull request but I am totally new to this project. Any advice?

$ docker build -t bull-board .
[+] Building 1.3s (9/10)                                                                                                                                                                                                                      
 => [internal] load build definition from Dockerfile                                                                                                                                                                                     0.0s
 => => transferring dockerfile: 184B                                                                                                                                                                                                     0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                        0.0s
 => => transferring context: 61B                                                                                                                                                                                                         0.0s
 => [internal] load metadata for docker.io/library/node:lts                                                                                                                                                                              1.2s
 => [auth] library/node:pull token for registry-1.docker.io                                                                                                                                                                              0.0s
 => CANCELED [1/5] FROM docker.io/library/node:lts@sha256:d6925dc84f8c0d1c1f8df4ea6a9a54e57d430241cb734b1b0c45ed6d26e8e9c0                                                                                                               0.1s
 => => resolve docker.io/library/node:lts@sha256:d6925dc84f8c0d1c1f8df4ea6a9a54e57d430241cb734b1b0c45ed6d26e8e9c0                                                                                                                        0.0s
 => => sha256:a740756586cba8ac5cffe834b4f9e67edbd84020d7a9f961bf0d180b9043fb3d 7.41kB / 7.41kB                                                                                                                                           0.0s
 => => sha256:d6925dc84f8c0d1c1f8df4ea6a9a54e57d430241cb734b1b0c45ed6d26e8e9c0 1.21kB / 1.21kB                                                                                                                                           0.0s
 => => sha256:a6a218ea2c972b92a98bad6030c253c3448f19e035cf88b2e543cab2922f5582 2.00kB / 2.00kB                                                                                                                                           0.0s
 => [internal] load build context                                                                                                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                                                                                                          0.0s
 => CACHED [2/5] WORKDIR /app/website                                                                                                                                                                                                    0.0s
 => ERROR [3/5] COPY ./docs /app/docs                                                                                                                                                                                                    0.0s
 => ERROR [4/5] COPY ./website /app/website                                                                                                                                                                                              0.0s
------
 > [3/5] COPY ./docs /app/docs:
------
------
 > [4/5] COPY ./website /app/website:
------
Dockerfile:7
--------------------
   5 |     EXPOSE 3000 35729
   6 |     COPY ./docs /app/docs
   7 | >>> COPY ./website /app/website
   8 |     RUN yarn install
   9 |     
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref moby::q7h01nwjj5k3cb97udbwmgpax: "/website": not found
felixmosh commented 1 month ago

Hi @PabloCastellano I'm not an expert with Docker, but, it should be easy to copy one of the examples and make a docker out of it...