https://github.com/gravity-ui/docker-nodejs
Base docker image for gravity-ui projects
https://github.com/gravity-ui/docker-nodejs
Last synced: 2 months ago
JSON representation
Base docker image for gravity-ui projects
- Host: GitHub
- URL: https://github.com/gravity-ui/docker-nodejs
- Owner: gravity-ui
- License: mit
- Created: 2023-04-18T06:19:53.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-24T13:14:29.000Z (over 1 year ago)
- Last Synced: 2025-03-23T06:13:39.020Z (about 1 year ago)
- Language: Dockerfile
- Size: 33.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Docker nodejs
Ubuntu based docker image with nginx and nodejs.
## Usage example
See example docker files in [examples folder](./examples).
## Push image to container registry
Images now are saved in [Github container registry](https://github.com/orgs/gravity-ui/packages/container/package/node-nginx).
To push new image to registry you need to do:
0. Install docker
1. Switch on main branch
`git checkout main`
2. Login
- Create [Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with permissions `read:packages` and `write:packages`
- Save token to env variable:
```bash
export CR_PAT=
```
- Login in registry:
```bash
echo $CR_PAT | docker login ghcr.io -u gravity-ui --password-stdin
```
3. Build new image
`docker build . --tag gravity-ui/node-nginx:latest`
4. Tag image
`docker image tag gravity-ui/node-nginx ghcr.io/gravity-ui/node-nginx:ubuntu20-nodejs18`
5. Push image
`docker image push ghcr.io/gravity-ui/node-nginx:ubuntu20-nodejs18`