How to specify docker build context that does NOT contain dockerfile (ContainerImage.fromAsset)? #28636
Unanswered
dev-samples
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using vanilla docker I can build my image with:
So the docker build context is the root of the repo:
my-repo/
while the dockerfile is in:
my-repo/docker/services/backend/Dockerfile
I am now trying to do the same using a cdk FargateTaskDefinition:
where:
~/projects/my-repo/infra/my-infra/lib/constructs/my-service.ts
contains:
Am I doing something wrong or is it currently not supported to build an image where the docker build context does NOT contain the dockerfile:
#3342
?
Beta Was this translation helpful? Give feedback.
All reactions