New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no entry file inside docker image #66
Comments
Try running this: $ docker-compose run --rm --no-deps api yarn # Install Node.js dependencies
$ docker-compose run --rm --no-deps api yarn build # Compile the app into ./build
$ docker build --no-cache --tag api . # Build the production "api" image
$ docker run --rm -p 8080:8080 api # Check if it works
$ docker run --rm api ls /usr/src/app/build # Show the files inside the image |
@eclipticwld the current setup expects you to build the app first, then run |
Thank you @koistya! That was helpful to move forward. |
Docker can't find server.js file inside the image. The way to reproduce:
response:
Error: Cannot find module '/usr/src/app/build/server.js' at Function.Module._resolveFilename (module.js:527:15) at Function.Module._load (module.js:453:25) at Function.Module.runMain (module.js:665:10) at startup (bootstrap_node.js:201:16) at bootstrap_node.js:626:3
The text was updated successfully, but these errors were encountered: