docker-curriculum
docker-curriculum copied to clipboard
Can't get through Step 10/13 when building flask app
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
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