Hello,
I have an docker image. And I would like to add some package to it.
I managed to do it with the following command:
docker exec -it artemis-server apk install graphviz
I have to run this command every time I stat a contianier.
how to do in permanently way to have this package in the image?
Thank you Martin for your answer.
I have a following situation. A docker image is created by “docker compose up” command which reads the “docker-compose.yml” config file. here is it’s content:
(the . in build just tells that the dockerfile is in the same directory as the docker-compose file)
now, when you run: docker-compose up -d
it will see that the image you defined, does not exist, but it can see the build: tag, and will then build the image with you apk install… and then run the container with that image.