Skip to content

Compilation of Docker not working: => ERROR [stage-4 4/4] COPY --chmod=0666 build/config.js /usr/share/nginx/html/  #48

@Boldie

Description

@Boldie

Tried to compile niolesk from git checkout using docker like it is written in compilation.md does not work and produce the following error message:

[+] Building 1.3s (14/14) FINISHED                                                                                                     docker:default
 => [internal] load build definition from Dockerfile                                                                                             0.0s
 => => transferring dockerfile: 2.25kB                                                                                                           0.0s
 => [internal] load metadata for docker.io/library/nginx:alpine                                                                                  1.1s
 => [internal] load metadata for docker.io/library/node:16-alpine3.17                                                                            1.2s
 => [internal] load .dockerignore                                                                                                                0.0s
 => => transferring context: 2B                                                                                                                  0.0s
 => CANCELED [builder-base 1/2] FROM docker.io/library/node:16-alpine3.17@sha256:bbc110afcd56dea9d27969ce1c3585aac53192ad14b364b6c5cb1f25a144ad  0.0s
 => => resolve docker.io/library/node:16-alpine3.17@sha256:bbc110afcd56dea9d27969ce1c3585aac53192ad14b364b6c5cb1f25a144ad9f                      0.0s
 => => sha256:bbc110afcd56dea9d27969ce1c3585aac53192ad14b364b6c5cb1f25a144ad9f 1.43kB / 1.43kB                                                   0.0s
 => CANCELED [stage-4 1/4] FROM docker.io/library/nginx:alpine@sha256:208b70eefac13ee9be00e486f79c695b15cef861c680527171a27d253d834be9           0.0s
 => => resolve docker.io/library/nginx:alpine@sha256:208b70eefac13ee9be00e486f79c695b15cef861c680527171a27d253d834be9                            0.0s
 => => sha256:208b70eefac13ee9be00e486f79c695b15cef861c680527171a27d253d834be9 9.07kB / 9.07kB                                                   0.0s
 => [internal] load build context                                                                                                                0.0s
 => => transferring context: 43.68kB                                                                                                             0.0s
 => CACHED [builder-base 2/2] RUN     apk update &&     apk add git                                                                              0.0s
 => CACHED [builder-local 1/1] ADD . /app                                                                                                        0.0s
 => CACHED [builder 1/2] WORKDIR /app                                                                                                            0.0s
 => CACHED [builder 2/2] RUN     yarn &&     yarn create-example-cache &&     PUBLIC_URL=/ yarn build                                            0.0s
 => CACHED [stage-4 2/4] COPY --from=builder /app/docker-res/update-config.sh /docker-entrypoint.d/update-config.sh                              0.0s
 => CACHED [stage-4 3/4] COPY --from=builder /app/build/ /usr/share/nginx/html/                                                                  0.0s
 => ERROR [stage-4 4/4] COPY --chmod=0666 build/config.js /usr/share/nginx/html/                                                                 0.0s
------
 > [stage-4 4/4] COPY --chmod=0666 build/config.js /usr/share/nginx/html/:
------
Dockerfile:77
--------------------
  75 |     COPY --from=builder /app/docker-res/update-config.sh /docker-entrypoint.d/update-config.sh
  76 |     COPY --from=builder /app/build/ /usr/share/nginx/html/
  77 | >>> COPY --chmod=0666 build/config.js /usr/share/nginx/html/
  78 |
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 4e0295b1-ca1e-4862-acf6-8428c2eb22e9::wf8dygh83nbyj79fhzcfmldiq: "/build/config.js": not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions