The arguments UID and GID were declared in the first FROM part of the Docker image, which made them non-compliant with the Docker specs. This resulted in a failed build, if the build was done without docker-compose:
RUN groupadd -g ${GID} borgwarehouse && useradd -m -u ${UID} -g ${GID} borgwarehouse
groupadd: invalid group ID 'borgwarehouse'
The arguments UID and GID were declared in the first FROM part of the Docker image, which made them non-compliant with the Docker specs. This resulted in a failed build, if the build was done without docker-compose:
https://docs.docker.com/reference/dockerfile/#understand-how-arg-and-from-interact