Fail to build
When running docker-compose up
the fist time, after copying the .env :
daxid@otus POC-mirador]$ docker-compose up
[+] Building 11.0s (11/13)
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 209B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 54B 0.0s
=> [internal] load metadata for docker.io/library/alpine:latest 1.5s
=> [internal] load metadata for docker.io/library/caddy:latest 2.2s
=> [internal] load build context 0.1s
=> => transferring context: 61.37kB 0.0s
=> CACHED [builder 1/6] FROM docker.io/library/alpine:latest@sha256:bc41182d7ef5ffc5 0.0s
=> [httpd 1/2] FROM docker.io/library/caddy:latest@sha256:2b5eaec58eda7e9c2cbcf317c6 3.7s
=> => resolve docker.io/library/caddy:latest@sha256:2b5eaec58eda7e9c2cbcf317c6e5fbfa 0.1s
=> => sha256:2b5eaec58eda7e9c2cbcf317c6e5fbfa5507a60d323967e24f686e3 1.93kB / 1.93kB 0.0s
=> => sha256:7992b931b7da3cf0840dd69ea74b2c67d423faf03408da8abdc31b7 1.36kB / 1.36kB 0.0s
=> => sha256:006d393a4e6a01f82413e41b3e0f06dfb1872d5ca6a37aba315e4ec 7.97kB / 7.97kB 0.0s
=> => sha256:5625668cf98fd3e4d769f18d45f27e34fe3d085cfb9927ff7ad 304.52kB / 304.52kB 0.4s
=> => sha256:f1747be7065842ba85f86aed65e75608dfd2f546ab9d8ecd4a884 14.56MB / 14.56MB 2.7s
=> => sha256:675d09b34c5347b62625d31b2a458824240b90e51d18bcc38ad37d3 5.83kB / 5.83kB 0.4s
=> => extracting sha256:5625668cf98fd3e4d769f18d45f27e34fe3d085cfb9927ff7ad2cdc84d8c 0.1s
=> => sha256:db8ee6c4c21d12cd28fcd0e196acb8569f35518dc36c691c91b4c8ca192 154B / 154B 0.7s
=> => extracting sha256:675d09b34c5347b62625d31b2a458824240b90e51d18bcc38ad37d317e83 0.0s
=> => extracting sha256:f1747be7065842ba85f86aed65e75608dfd2f546ab9d8ecd4a8842c8f463 0.3s
=> => extracting sha256:db8ee6c4c21d12cd28fcd0e196acb8569f35518dc36c691c91b4c8ca1928 0.0s
=> [builder 2/6] RUN apk add npm git 7.5s
=> [builder 3/6] COPY . /opt 0.2s
=> [builder 4/6] WORKDIR /opt 0.1s
=> ERROR [builder 5/6] RUN npm ci 0.7s
------
> [builder 5/6] RUN npm ci:
#0 0.699 npm ERR! The `npm ci` command can only install with an existing package-lock.json or
#0 0.700 npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
#0 0.700 npm ERR! later to generate a package-lock.json file, then try again.
#0 0.703
#0 0.703 npm ERR! A complete log of this run can be found in:
#0 0.703 npm ERR! /root/.npm/_logs/2022-10-20T12_32_36_294Z-debug-0.log
------
failed to solve: executor failed running [/bin/sh -c npm ci]: exit code: 1