We are at the moment evaluating Circle. I have a docker-compose which fails to builds one of the container with reason npm install fails to find package.json which actually does exist in the working folder.
Dockerfile:
FROM node:10 as tester
RUN mkdir /work
WORKDIR /work
COPY package*.json ./
RUN pwd
RUN ls -l
RUN npm install
Console:
…
Step 15/17 : RUN pwd
—> Running in e9e01e747bbf
/work
—> 8aeed12b0fe2
Removing intermediate container e9e01e747bbf
Step 16/17 : RUN ls -l
—> Running in de7fb4488ec6
total 8
-rw-r–r-- 1 root root 77 Oct 18 01:13 package-lock.json
-rw-r–r-- 1 root root 201 Oct 18 01:13 package.json
Removing intermediate container de7fb4488ec6
Step 17/17 : RUN npm install
—> Running in bfce5777ee94
up to date in 0.668s
found 0 vulnerabilities
Successfully built 615274cb6279
Successfully tagged hello-circleci_tester:latest
Creating network “hello-circleci_default” with the default driver
Creating hello-circleci_dev_1 …
^@^@npm ERR! path /work/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open ‘/work/package.json’
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-10-18T01_14_29_411Z-debug.log
Stopping hello-circleci_dev_1 …
npm version: npm: ‘6.4.1’
We need to get this working asap as we only have limited evaluation window of the tool. Any help appreciated. cheers