How is this suppoused to be ussed?
The Readme makes a great work explaining how it works, but I still find some troubles understanding how this should be used. I found this on pypi https://pypi.org/project/docker-systemctl-replacement/ so I would assume I could put inside a dockerfile:
FROM rockylinux
# ...
RUN dnf install -y python39
RUN python3 -m pip install docker-systemctl-replacement
# ...
However it doesn't work, I am almost sure it is not supposed to run that way since I could not find mention on pip in any place on the Readme.
I have also thought I could just:
FROM rockylinux
# ...
RUN dnf install -y python39
COPY ../docker-systemctl-replacement/files/docker/systemctl3.py /usr/bin/systemctl
# ...
However I am not sure if I should only do that of if I should also do something else. I am new to docker.
The pip-module installs "systemctl.py" and "systemctl3.py". In order to override "systemctl" command you would need to make the copy/symlink being an additional step in the dockerfile.
After all, you are correct - copy/download the one file and push it in place.