Giter VIP home page Giter VIP logo

Comments (3)

derekhiggins avatar derekhiggins commented on July 24, 2024

This will create a file /tmpDockerfile. in / docker build ignores the empty string.

Just to add to this, imagebuilder puts anything in the source directory on the host into / (not limited to Dockerfile)
docker/podman build does something similar, but instead puts all the files into /tmp

from imagebuilder.

nalind avatar nalind commented on July 24, 2024

@joepvd which version of docker build are you testing with? When I run your reproducer with a file other than Dockerfile in the build context directory with 19.03.12 (say, by running touch NOT-THIS-FILE first), docker build copies it to the destination directory, too, as if the empty quoted value was being treated as * rather than being ignored.

from imagebuilder.

nalind avatar nalind commented on July 24, 2024

@derekhiggins Thanks for clearing things up!

from imagebuilder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.