prakhar1989 / docker-curriculum

:dolphin: A comprehensive tutorial on getting started with Docker!
https://docker-curriculum.com/
MIT License
5.68k stars 2.17k forks source link

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

Open willmatheson opened 4 years ago

willmatheson commented 4 years ago

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

obayit commented 4 years ago

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