saadpasta / developerFolio

🚀 Software Developer Portfolio Template that helps you showcase your work and skills as a software developer. (This is currently not being actively maintained)
https://developerfolio.js.org/
GNU General Public License v3.0
5.53k stars 2.86k forks source link

Error when running docker run after buiding the image #730

Open jamhulk opened 1 month ago

jamhulk commented 1 month ago

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

Smartphones

No response

Additional context

FYI can run successfully if using "npm start"