3 ms·
I don't like that they're doing it as a flag to docker build, though. I would have liked something like RUN echo "this gets its own layer" BEGIN RUN echo
by majewsky 10y ago
I don't like that they're doing it as a flag to docker build, though. I would have liked something like
RUN echo "this gets its own layer"
BEGIN
RUN echo "this will be squashed"
RUN echo "and this, too"
SQUASH
RUN echo "this gets its own layer again"
Similar to how BEGIN..COMMIT works in SQL.
- CSDude 10y agoYeah, I like that. Because even a chmod of a directory causes another layer with all the data duplicated, it would be better if I can just squash the selected lines.