react-redux-universal-hot-example icon indicating copy to clipboard operation
react-redux-universal-hot-example copied to clipboard

502 after yarn docker-up

Open S1MB10T3 opened this issue 6 years ago • 1 comments

I built with yarn docker-build then tried to run it with yarn docker-up. Visiting the site by the ip or the url results in a 502 error.

running yarn docker-dev gives me this error:

app_1    | [2] Error: EACCES: permission denied, mkdir '/project/node_modules/.cache/@babel'
app_1    | [2]     at Object.fs.mkdirSync (fs.js:885:18)
app_1    | [2]     at sync (/project/node_modules/mkdirp/index.js:71:13)
app_1    | [2]     at sync (/project/node_modules/mkdirp/index.js:77:24)
app_1    | [2]     at save (/project/node_modules/@babel/register/lib/cache.js:50:20)
app_1    | [2]     at _combinedTickCallback (internal/process/next_tick.js:132:7)
app_1    | [2]     at process._tickCallback (internal/process/next_tick.js:181:9)
app_1    | [2]     at Function.Module.runMain (module.js:696:11)
app_1    | [2]     at startup (bootstrap_node.js:204:16)
app_1    | [2]     at bootstrap_node.js:625:3

Any help on how to get a production build with Docker?

S1MB10T3 avatar Apr 30 '19 05:04 S1MB10T3

Guess I'm using pm2 for now. Docker and node always is a pain for me.

Leaving the issue open I guess for anyone else having issue with Docker

S1MB10T3 avatar May 02 '19 05:05 S1MB10T3