https://github.com/temando/docker-minimal-node
A very light weight docker image to perform node module installations.
https://github.com/temando/docker-minimal-node
alpine-linux docker-image nodejs
Last synced: 5 days ago
JSON representation
A very light weight docker image to perform node module installations.
- Host: GitHub
- URL: https://github.com/temando/docker-minimal-node
- Owner: temando
- License: isc
- Created: 2017-01-31T00:14:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-02T00:57:26.000Z (over 9 years ago)
- Last Synced: 2025-08-16T19:28:34.094Z (10 months ago)
- Topics: alpine-linux, docker-image, nodejs
- Size: 3.91 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Minimal Node Docker File
[](https://microbadger.com/images/temandodx/minimal-node "Click for more information.")
[](https://microbadger.com/images/temandodx/minimal-node "Click for more information.")
[](https://hub.docker.com/r/temandodx/minimal-node "Click for more information.")
[](https://travis-ci.org/temando/docker-minimal-node "Click for more information.")
This project contains the Docker file to install node modules for projects. The official [Node 4 image based on Alpine Linux](https://hub.docker.com/_/node/) installation with [Yarn](https://yarnpkg.com) added for convenience.
## Prerequisites
Install [Docker](https://www.docker.com) to run `docker` commands.
## Building the Docker Image
To build the image, run:
```sh
docker build -t {imagename} --build-arg SOURCE_COMMIT=$(git rev-parse --short HEAD) .
```
**Note:**
- `{imagename}` can be any string.
- Syntax shown above works in `bash`.
## Log in to the Docker Image
To log in to the previously built Docker image, run:
```sh
docker run -ti {imagename} sh
```
`{imagename}` can be any string.