:wave: I'm using this very basic example of creati...
# getting-started
m
👋 I'm using this very basic example of creating a docker image and pushing to ECR
Copy code
const image = repo.buildAndPushImage({
  context: '../',
});
I looked for example and documentation, but could not find an example of how to specify a label for the image - for instance i'd like to label the image
api
Does anyone have any pointers? much appreciated ty
g
Are you looking to label the image (as in add a bit of metadata to the image) or actually set the name of the image in your registry? If you're labeling, I'd set it in the Dockerfile itself.
m
hey laura, thanks for the response. I'm looking to add metadata and implement lifecycle policies based on that