Laurent Goderre

Results 349 comments of Laurent Goderre

ARe you sure your docker is correctly configured to allow internet access to your containers?

@mremes all of the `COPY` in your docker are run as root so the files created are owned by root. The `USER` directive should be before the `WORKDIR` command.

If I remember correctly, if the `WORKDIR` command has to create a folder, it creates it as root so you can instead do ```Dockerfile USER node RUN mkdir /home/node/webapp WORKDIR...

@mremes a bit of nitpick too but the port in your env var doesn't match the port you expose. Is that intentional?

IMHO it should probably be ```Dockerfile FROM node # Perform root tasks such as install OS package (via apt or APK) USER node # Copy your app and install your...

@pecho that was the original problem though. When code and modules are installed as root you get tons of permission issues.

Seems that issue is that the DNS failed to resolve. Is this something that randomly happens or is it reproducible?

Is DNS.js your own file or part of express?

Can you try this? ``` docker run --rm -it node:10.13.0-alpine node -pe 'require("dns").lookup("www.amazon.com",function(){console.dir(arguments)})' ```

Got AppVeyor setup on my fork: https://ci.appveyor.com/project/LaurentGoderre/docker-node/history