Skip to content
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

Error when running docker run after buiding the image #730

Open
jamhulk opened this issue Sep 28, 2024 · 0 comments · May be fixed by #743
Open

Error when running docker run after buiding the image #730

jamhulk opened this issue Sep 28, 2024 · 0 comments · May be fixed by #743
Labels
bug Something isn't working

Comments

@jamhulk
Copy link

jamhulk commented Sep 28, 2024

Describe the bug

Below is the error message I received when running docker as stated in the docs.

1) BUILD IMAGE : docker build -t developerfolio:latest . 2) RUN IMAGE: docker run -t -p 3000:3000 developerfolio:latest

$ docker run -t -p 3000:3000 developerfolio:latest

developerfolio@0.1.0 start /app
node fetch.js && react-scripts start

/app/node_modules/eslint-webpack-plugin/node_modules/jest-worker/build/index.js:110
_ending;
^

SyntaxError: Unexpected token ;
at Module._compile (internal/modules/cjs/loader.js:721:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/app/node_modules/eslint-webpack-plugin/dist/getESLint.js:9:5)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! developerfolio@0.1.0 start: node fetch.js && react-scripts start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the developerfolio@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2024-09-28T18_24_38_911Z-debug.log

Steps to reproduce

  1. Clone repo
  2. BUILD IMAGE : docker build -t developerfolio:latest .
  3. RUN IMAGE: docker run -t -p 3000:3000 developerfolio:latest

FYI can run successfully if using "npm start"

Expected behavior

Should run a local docker instance

Is this responsiveness Issue

Yes

Screenshots

image

Desktop

  • OS: Linux Mint 21.3"

Smartphones

No response

Additional context

FYI can run successfully if using "npm start"

@jamhulk jamhulk added the bug Something isn't working label Sep 28, 2024
@Jawad-Nasir Jawad-Nasir linked a pull request Nov 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant