node-docker
node-docker copied to clipboard
:whale: Docker image, based on node, with git, bash, and openssh
Why?
Base node image does not contain installed git, for example (issue). Because of this previously I had to build a separate image (installing many npm dependencies was otherwise impossible), but now we can just use this image :)
Installed applications
We had installed to the alpine-based images the following applications (using a package manager):
gitbashopenssh
If you think something else should be installed additionally, please create an issue in this repository describing the reason
What about updates?
I took care of this - using periodic runs of GitHub actions tags in major(.minor)-alpine format are automatically rebuilt (if they have been updated). You can check all existing tags in one of the following docker-registries:
| Registry | Image |
|---|---|
| Docker Hub | tarampampam/node |
| GitHub Container Registry (mirror) | ghcr.io/tarampampam/node |
All tags support architectures that are available in the original tags:
$ docker run --rm mplatform/mquery tarampampam/node:latest
Image: tarampampam/node:latest
* Manifest List: Yes
* Supported platforms:
- linux/s390x
- linux/ppc64le
- linux/amd64
- linux/arm64
- linux/arm/v7
Supported tags
latestalpinelts-alpinecurrent-alpine8-alpine,8.x-alpine(deprecated)9-alpine,9.x-alpine(deprecated)10-alpine,10.x-alpine11-alpine,11.x-alpine12-alpine,12.x-alpine13-alpine,13.x-alpine14-alpine,14.x-alpine15-alpine,15.x-alpine16-alpine,16.x-alpine17-alpine,17.x-alpine
Note: Some tags/platforms are ignored due to the "Segmentation fault" errors
How can I use this?
For example:
$ docker run --rm \
--volume "$(pwd):/app" \
--workdir "/app" \
--user "$(id -u):$(id -g)" \
tarampampam/node:17-alpine \
yarn install
Or using with docker-compose.yml:
services:
node:
image: tarampampam/node:17-alpine
volumes:
- ./src:/app:rw
working_dir: /app
command: []
License
WTFPL. Use anywhere for your pleasure.