Skip to content

gravity-ui/docker-nodejs

Repository files navigation

Docker nodejs

Ubuntu based docker image with nginx and nodejs.

Usage example

See example docker files in examples folder.

Push image to container registry

Images now are saved in Github container registry.

To push new image to registry you need to do:

  1. Install docker

  2. Switch on main branch

git checkout main

  1. Login
  • Create Personal Access Token with permissions read:packages and write: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
  1. Build new image

docker build . --tag gravity-ui/node-nginx:latest

  1. Tag image

docker image tag gravity-ui/node-nginx ghcr.io/gravity-ui/node-nginx:ubuntu20-nodejs18

  1. Push image

docker image push ghcr.io/gravity-ui/node-nginx:ubuntu20-nodejs18

About

Base docker image for gravity-ui projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages