Building and publishing a container
In this recipe, we are going to containerize a simple web application and push it to a container registry.
Getting ready…
Open the repository (https://github.com/wulfland/release-recipe) and click on Use this template to create a new copy out of it (direct link: https://github.com/new?template_name=release-recipe&template_owner=wulfland). Create a new public repository in your personal account, name it release-recipe
, and clone the repository.
Open the package.json
and adjust the author and repository URL.
Under dependencies, adjust the owner and version of the package recipe to your package from Chapter 6, Build and validate your code:
"dependencies": { "@wulfland/package-recipe": "^2.0.5", "express": "^4.18.2" }
Replace the owner in the file .npmrc
:
@wulfland:registry=https://npm.pkg.github.com
In a terminal, run the following commands:
...