Open robertlagrant opened 3 years ago
Are there any plans to remove the experimental status from --squash
?
Hi @robertlagrant and @tobiasstadler, thanks for posting this proposal!
I have two quick questions that would help me better understand your use cases:
--squash
? (Phrased another way, what goal are you achieving using this flag)Hi @robertlagrant
I am copying some (large) files to populate a PostgreSQL DB. As these file aren't used after populating the DB I want to get rid of them.
As you sad, I could created the DB in a "builder" container and only copy the PostgreSQL data files to to actually container, but using --squash
feels little bit nicer/easier.
I am not sure if I could use heredoc.
Tell us about your request
docker build --squash
has been around since 2017. Completing this feature would allow much more readable Dockerfiles, and would remove a learning step for Docker beginners.Which service(s) is this request for? Docker engine and CLI.
Are you currently working around the issue? Through lots of ampersands. Chaining commands so they do not add individual layers makes things hard to read, but achieves the same effect.