Skip to content
Discussion options

You must be logged in to vote

My bad. This works:

...
fooImage = DockerImageAsset.Builder.create(this, "foo")
  .platform(Platform.LINUX_AMD64)
  .directory("some/directory")
  .file("Dockerfile")
  .build()
  
fooFunction = Function.Builder.create(this, "foo-function")
  .runtime(Runtime.FROM_IMAGE)
  .handler(Handler.FROM_IMAGE)
  .code(Code.fromEcrImage(
    fooImage.repository,
    EcrImageCodeProps.builder()
      .tagOrDigest(fooImage.imageTag)
      .build()))
  .build()  

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by j4zzcat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant