dockerfile / nodejs Goto Github PK
View Code? Open in Web Editor NEWNode.js Dockerfile for trusted automated Docker builds.
Home Page: http://dockerfile.github.io/#/nodejs
License: MIT License
Node.js Dockerfile for trusted automated Docker builds.
Home Page: http://dockerfile.github.io/#/nodejs
License: MIT License
In order to use this image in production we need version tags.
This dockerfile should check the shasum of the Node tar, especially since Node downloads are only available over HTTP. This also means checking the SHA signatures.
Theoretically, all this should be done anyway for the super paranoid that don't trust the CA system.
I'm not sure if this is the correct place to file this, but:
When I was building a dockerfile that had FROM dockerfile/nodejs
I'm getting an error: Error: image dockerfile/nodejs:latest not found
When I go to the docker registry for this repo: https://registry.hub.docker.com/u/dockerfile/nodejs/ I get redirected to https://registry.hub.docker.com/u/library/node/
Was this docker image deprecated in favor of library/node
? Or was it renamed?
Unfortunately this does not work at all with the newer version of Docker for mac/windows and boot2docker.iso as it uses the AUFS file system. The issue happens to deal with the way the fs.rename call is implemented... or something like that. The fix seems to be some how forcing a different storage option but I cant seem to do that on Mac with Boot2Docker.
npm ERR! Linux 4.1.13-boot2docker
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "npm" "--prefix=/usr/local"
npm ERR! node v5.4.1
npm ERR! npm v3.3.12
npm ERR! path /usr/local/lib/node_modules/npm
npm ERR! code EXDEV
npm ERR! errno -18
npm ERR! syscall rename
npm ERR! EXDEV: cross-device link not permitted, rename '/usr/local/lib/node_modules/npm' -> '/usr/local/lib/node_modules/.npm.DELETE'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /npm-debug.log
Would be great to have 0.12 version published
Just FYI, see angular/protractor#965
Not sure what the problem was, but thought you might be interested.
The docker file downloads "latest" from node repository. This can change overtime, but the hash won't change. This means that your outcome will be dependent on the state of your cache and when you run the command. The node version would ideally be included in that RUN command.
Looks like this has been obsoleted by https://github.com/nodejs/docker-node, is that correct?
Hi,
I've created a pull request (#7) to speed up the installation of nodejs.
It uses apt-get
to install npm
which allows us to install n
in roder to be able to have nodejs-latest already compiled.
Also, it depends on dockerfile/ubuntu
instead of dockerfile/python
(why do you need python?)
It also has an ENV variable that allows you to select which nodejs version you want to install.
I've seen that in #3 someone suggest to use tagging, which I still have to investigate, but seems a pretty way to specify what version of node to install
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.