Giter VIP home page Giter VIP logo

Comments (9)

mhart avatar mhart commented on August 23, 2024

No idea – can you give some idea of what your app looks like? What dependencies does it have? What's the main file you're running (index.js?)

from alpine-node.

mhart avatar mhart commented on August 23, 2024

Interestingly, when I was testing some things out with installing express, I found the following Node.js bug: nodejs/node#6679 – so try with mhart/alpine-node:5 and see if that fixes things – if so, then you've run into the same bug.

from alpine-node.

ChetanBhasin avatar ChetanBhasin commented on August 23, 2024

This looks like it. I tried changing the working directory and it solved the problem. I think it would be a good idea to change the working directory in the image itself.

from alpine-node.

mhart avatar mhart commented on August 23, 2024

I disagree – the working directory of this base image should stay at the root, as it does for its parent (and the official node docker image) as there's no actual source or project files in this image. When a consumer adds a project or source in their Dockerfile, then they should specify whatever working directory they want (as shown in the example on the README).

Glad you solved the problem though! Hopefully that bug with v6 will be solved soon

from alpine-node.

ChetanBhasin avatar ChetanBhasin commented on August 23, 2024

I see, that makes sense. Thanks for the help!

from alpine-node.

yarosman avatar yarosman commented on August 23, 2024

Hi, I have the same problem but with morgan module, and I use mhart/alpine-node:latest. But when i build my docker image from mhart/alpine-node:5 it works fine. And i can't understand why?

from alpine-node.

mhart avatar mhart commented on August 23, 2024

@poison766 this comment explains why – it's a bug in Node v6.

from alpine-node.

yarosman avatar yarosman commented on August 23, 2024

I read it. But when I use official image node:latest everything work fine without any problems

from alpine-node.

mhart avatar mhart commented on August 23, 2024

@poison766 ah, your question seemed to be why it worked in mhart/alpine-node:5 and not in mhart/alpine-node:latest

Have you tried setting your WORKDIR as specified in the example?

from alpine-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.