https://github.com/lgaticaq/node-onbuild
Docker onbuild image for node apps with alpine linux
https://github.com/lgaticaq/node-onbuild
docker-image nodejs onbuild
Last synced: about 1 month ago
JSON representation
Docker onbuild image for node apps with alpine linux
- Host: GitHub
- URL: https://github.com/lgaticaq/node-onbuild
- Owner: lgaticaq
- License: mit
- Created: 2018-06-19T17:01:22.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-15T07:32:02.000Z (over 1 year ago)
- Last Synced: 2025-02-15T08:26:23.810Z (over 1 year ago)
- Topics: docker-image, nodejs, onbuild
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-onbuild
[](https://hub.docker.com/r/lgatica/node-onbuild/)
[](https://travis-ci.org/lgaticaq/node-onbuild)
> Docker onbuild image for node apps with alpine linux
Supported tags and respective Dockerfile links
* 10.4.1, 10.4, 10, latest ([10.4/Dockerfile](https://github.com/lgaticaq/node-onbuild/blob/master/10.4.1/Dockerfile))
* 9.11.2, 9.11, 9 ([9.11/Dockerfile](https://github.com/lgaticaq/node-onbuild/blob/master/9.11.2/Dockerfile))
* 8.11.3, 8.11, 8 ([8.11/Dockerfile](https://github.com/lgaticaq/node-onbuild/blob/master/8.11.3/Dockerfile))
* 6.14.3, 6.14, 6 ([6.14/Dockerfile](https://github.com/lgaticaq/node-onbuild/blob/master/6.14.3/Dockerfile))
## Create a Dockerfile in your Node.js app project
```dockerfile
FROM lgatica/node-onbuild:10.4.1
EXPOSE 3000
```
You can then build and run the Docker image:
```bash
docker build -t my-nodejs-app .
docker run -it --rm --name my-running-app my-nodejs-app
```
### Notes
The image assumes that your application has a file named package.json listing its dependencies and defining its start script.