How can I run apt-get update and apt-get upgrade commands automatically?

HOW TO -️ October 18, 2021

I have a docker container where I run a few commands as a root user each time it is created from an image. Is it possible to automate running these commands as a root administrator user each time my container is created?

ERROR Rendering Code Block

Answer

Which image is it? Do you build that image? It is php: image: pimcore/pimcore:PHP7.4-apache

Initializing...