3 ms·
But a Dockerfile is imperative. It just lists, in order, the steps needed to build an image.
by avip 8y ago
But a Dockerfile is imperative. It just lists, in order, the steps needed to build an image.
- maxbendick 8y agoIt's declarative in the sense that the instructions are set in text. But what goes inside a Dockerfile might be imperative, like running apt-get to install packages (i.e., running steps in order).
- iamdave 8y agoBut what goes inside a Dockerfile might be imperative, like running apt-get to install packages (i.e., running steps in order) But...that too is done via the Dockerfile, via the RUN command to execute commands inside the container at run time. Or alternatively using the ENTRYPOINT command.