Ubuntu based docker image with nginx and nodejs.
See example docker files in examples folder.
Images now are saved in Github container registry.
To push new image to registry you need to do:
-
Install docker
-
Switch on main branch
git checkout main
- Login
-
Create Personal Access Token with permissions
read:packages
andwrite:packages
-
Save token to env variable:
export CR_PAT=<TOKEN>
- Login in registry:
echo $CR_PAT | docker login ghcr.io -u gravity-ui --password-stdin
- Build new image
docker build . --tag gravity-ui/node-nginx:latest
- Tag image
docker image tag gravity-ui/node-nginx ghcr.io/gravity-ui/node-nginx:ubuntu20-nodejs18
- Push image
docker image push ghcr.io/gravity-ui/node-nginx:ubuntu20-nodejs18