https://github.com/webmasterdevlin/nodejs-express-k8s
Sample JSON response at /
https://github.com/webmasterdevlin/nodejs-express-k8s
Last synced: 6 months ago
JSON representation
Sample JSON response at /
- Host: GitHub
- URL: https://github.com/webmasterdevlin/nodejs-express-k8s
- Owner: webmasterdevlin
- Created: 2020-07-06T23:03:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T05:54:32.000Z (over 3 years ago)
- Last Synced: 2025-01-26T13:42:01.325Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://hub.docker.com/repository/docker/webmasterdevlin/nodejs-express-k8s
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Dockerizing a Nodejs Express
Login to Docker Hub
```zsh
$ docker login
```
create a Nodejs Express container
```zsh
$ docker build -t {yourDockerUsername}/nodejs-express-api:1.0.0 .
```
Test the Nodejs Express container by running it. It should be visible at localhost:8080
```zsh
$ docker run -p 8080:8080 {yourDockerUsername}/nodejs-express-api:1.0.0
```
Push the container to your Docker Hub account repository
```zsh
$ docker push {yourDockerUsername}/nodejs-express:1.0.0
```