https://github.com/lgaticaq/node-runtime
Docker onbuild image for ligth node apps with alpine linux
https://github.com/lgaticaq/node-runtime
alpine docker-image nodejs
Last synced: about 1 month ago
JSON representation
Docker onbuild image for ligth node apps with alpine linux
- Host: GitHub
- URL: https://github.com/lgaticaq/node-runtime
- Owner: lgaticaq
- License: mit
- Created: 2018-06-18T21:38:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-14T22:18:37.000Z (over 1 year ago)
- Last Synced: 2025-02-14T23:23:34.220Z (over 1 year ago)
- Topics: alpine, docker-image, nodejs
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-runtime
[](https://hub.docker.com/r/lgatica/node-runtime/)
[](https://travis-ci.org/lgaticaq/node-runtime)
> Docker onbuild image for ligth node apps with alpine linux
Supported tags and respective Dockerfile links
* latest ([Dockerfile](https://github.com/lgaticaq/node-runtime/blob/master/Dockerfile))
## Create a Dockerfile in your Node.js app project
NOTE: this image depend of a node onbuild image. For example [node:8-onbuild](https://github.com/nodejs/docker-node/blob/master/8/onbuild/Dockerfile).
```dockerfile
FROM lgatica/node:10-onbuild as builder
FROM lgatica/node-runtime
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.