Docker container update fails due to wrong handling of apt updates
When I tried to update my pkm-api docker container this morning, it failed because some
apt install changed that were not backed up by
apt update. So, some dependencies failed. I have two suggestions:
- always do
RUN apt update -y && apt install -y ...
- when an installation works, group all
apt installin a single
RUNcommand to avoid several updates and improve dependencies checking.