Closed ntedgi closed 2 years ago
there is an issue with the docker-compose file image of playground server when running docker-compose up
#6 0.818 npm ERR! enoent ENOENT: no such file or directory, open '/home/app/package.json'
❯ docker-compose up [+] Building 7.4s (6/6) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 32B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/node:14.16.1 6.2s => [1/3] FROM docker.io/library/node:14.16.1-buster@sha256:09d 0.0s => CACHED [2/3] WORKDIR /home/app 0.0s => ERROR [3/3] RUN rm -rf node_modules && npm ci --quiet - 0.9s ------ > [3/3] RUN rm -rf node_modules && npm ci --quiet --no-progress: #6 0.800 npm ERR! code ENOENT #6 0.805 npm ERR! syscall open #6 0.809 npm ERR! path /home/app/package.json #6 0.812 npm ERR! errno -2 #6 0.818 npm ERR! enoent ENOENT: no such file or directory, open '/home/app/package.json' #6 0.819 npm ERR! enoent This is related to npm not being able to find a file. #6 0.821 npm ERR! enoent #6 0.833 #6 0.833 npm ERR! A complete log of this run can be found in: #6 0.834 npm ERR! /root/.npm/_logs/2022-04-15T15_23_16_787Z-debug.log ------ failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c rm -rf node_modules && npm ci --quiet --no-progress]: exit code: 254
to solve this issue add to file /playground/server/Dockerfile COPY . .line after WORKDIR /home/app
COPY . .line
WORKDIR /home/app
there is an issue with the docker-compose file image of playground server when running docker-compose up
to solve this issue add to file /playground/server/Dockerfile
COPY . .line
afterWORKDIR /home/app