Comments (9)
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.
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.
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.
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.
I see, that makes sense. Thanks for the help!
from alpine-node.
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.
@poison766 this comment explains why – it's a bug in Node v6.
from alpine-node.
I read it. But when I use official image node:latest everything work fine without any problems
from alpine-node.
@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)
- CDN Issue? HOT 2
- Missing slim-12.14 HOT 1
- Only pulling Alpine 4.9 not 4.10 HOT 1
- Update alpine in 12:alpine-node because vulnerability HOT 4
- returned a non-zero code: 2 HOT 1
- Newest version 14 image size HOT 2
- Node version change? HOT 8
- Node version 8 in version 10 images HOT 3
- ARM version HOT 2
- Gitlab CI/CD failing to build react app with latest version (docker environment) HOT 6
- Warning when build with signature HOT 2
- Release ARM64 images HOT 2
- Node 16 based image HOT 2
- Some of the imported PGP keys have expired HOT 5
- Fatal process OOM in Failed to reserve virtual memory for CodeRange (mhart/alpine-node:16) HOT 1
- pnpm support HOT 1
- CVE-2022-28391
- Is this project still maintained? HOT 2
- node 18 support HOT 3
- Not able to save Cookies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alpine-node.