lamarios/monopoly

DockerFile issues

Closed this issue · 1 comments

Hi, I've forked your repo and I'm trying to build the docker image, but the game dockerfile leaves me with the following error after i run docker build - < Dockerfile in the game directory

$ docker build - < Dockerfile
Sending build context to Docker daemon   2.56kB
Step 1/19 : FROM node:alpine AS build
 ---> ea308280893e
Step 2/19 : RUN mkdir /src
 ---> Using cache
 ---> 926c63d8a238
Step 3/19 : ADD . /src/
 ---> 92d1bef3dded
Step 4/19 : WORKDIR /src/client
 ---> Running in a4ce96ebacd8
Removing intermediate container a4ce96ebacd8
 ---> 5d211e7cf5c4
Step 5/19 : RUN  npm install && npm run build
 ---> Running in aab3179aeadb
npm WARN saveError ENOENT: no such file or directory, open '/src/client/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/src/client/package.json'
npm WARN client No description
npm WARN client No repository field.
npm WARN client No README data
npm WARN client No license field.

up to date in 0.366s
found 0 vulnerabilities

npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /src/client/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/src/client/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/2020-04-23T15_56_40_779Z-debug.log
The command '/bin/sh -c npm install && npm run build' returned a non-zero code: 254

I did not change anything in the dockerfile or the directory structure. i tried to add a RUN ls /src/client/ but found that that directory is somehow empty, also checked the permissions on my machine and they look fine

When I use your command it doesn't work. But using (after you pull last changes from my repo as there were some issues with a clean repo)

docker build . 

does.