Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build docker image without build context #47

Open
mausch opened this issue Nov 23, 2023 · 1 comment
Open

Build docker image without build context #47

mausch opened this issue Nov 23, 2023 · 1 comment
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/enhancement Improvements or new features

Comments

@mausch
Copy link

mausch commented Nov 23, 2023

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

I need the equivalent of docker build - < Dockerfile i.e. building a docker image with no context.
I tried setting build.context="" ( https://www.pulumi.com/registry/packages/docker/api-docs/image/#dockerbuild ) but that seems to set the context to the current dir. This makes Pulumi rebuild the image on every run whenever I change any files.

Workaround: point the build context to an explicitly empty dir.

I asked about this on Slack but got no answers.

Affected area/feature

@mausch mausch added kind/enhancement Improvements or new features needs-triage Needs attention from the triage team labels Nov 23, 2023
@mikhailshilkov mikhailshilkov added impact/usability Something that impacts users' ability to use the product easily and intuitively and removed needs-triage Needs attention from the triage team labels Nov 23, 2023
@blampe
Copy link
Contributor

blampe commented Nov 30, 2023

Similar to pulumi/pulumi-docker#271 since Dockerfiles read from stdin can use an empty context.

@blampe blampe transferred this issue from pulumi/pulumi-docker Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/enhancement Improvements or new features
Projects
None yet
Development

No branches or pull requests

3 participants