Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
hell169548y@olpe 👍 what's the image you are using? Gonna try to help installing at least node and npm here
-
have you tried out nvm, it's a wonderful version manager for npm and node, i highly recommend it
-
cahva10158yWe are using mhart/alpine-node as baseimage:
https://github.com/mhart/...
When developing, mount your code dir to a folder you are starting your app. In prod you ofcourse ADD your code to the final image.
Dont use root (the default in docker) but add normal user and group in your Dockerfile which your app will run.
And run the npm install inside the docker, not with locally installed npm.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo35My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
Have spent now about 8h trying to install nodejs, npm and less inside a Docker machine :/
undefined
docker
fml