https://github.com/getssh/test-ci
https://github.com/getssh/test-ci
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/getssh/test-ci
- Owner: getssh
- Created: 2023-01-07T09:55:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T10:22:45.000Z (about 3 years ago)
- Last Synced: 2025-07-25T17:06:04.413Z (8 months ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
This is a very simple, bare-bones NodeJS project created for you to use with Docker.
## Local Setup
**_Note_**: This is only needed if you want to run the app locally. You don't need to install the dependencies or run the server if you are running the code inside a Docker container.
- Install dependencies: `npm install`
- Run server: `node server.js`
## Container Setup
- Build image: `docker build .`
- Run container with image: `docker run {image_id}` where `image_id` can be retrieved by running `docker images` and found under the column `IMAGE ID`
- You can use the `-d` flag to run the container in the background. This will enable you to run other commands in your terminal while the container is running.
## Container Teardown
- Remove container: `docker kill {container_id}` where `container_id` can be retrieved by running `docker ps` and found under the column `CONTAINER ID`