Home > other >  Dockerfile ADD & amp; & The RUN line not line?
Dockerfile ADD & amp; & The RUN line not line?

Time:09-20

Build dockerfile to compress the docker image size, some RUN instructions through & amp; & \ splicing,
But first I need to upload a file to ADD XXX/path, then need to delete the ADD file package, if it is
The ADD XXX/path
RUN the rm - rf XXX
Actually is not deleted, use the
The ADD XXX/path & amp; & RUN the rm - rf XXX if no again,
Ask how to write to achieve this effect?
  • Related