docker-curriculum icon indicating copy to clipboard operation
docker-curriculum copied to clipboard

Can't get through Step 10/13 when building flask app

Open willmatheson opened this issue 4 years ago • 1 comments

I can't get through Step 10/13 when running docker build -t [mydockerhubusername]/foodtrucks-web .. Here is the output:

Step 10/13 : RUN npm run build ---> Running in c5d483a8be7b npm ERR! missing script: build

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-10-22T23_04_11_153Z-debug.log The command '/bin/sh -c npm run build' returned a non-zero code: 1

willmatheson avatar Oct 22 '20 23:10 willmatheson

I know this is old, but anyways...

Make sure you have WORKDIR /opt/flask-app because it seems like npm run build is not executed in the correct directory

obayit avatar Nov 14 '20 14:11 obayit