docker-rocky8-php8

build instructions

make sure these ENV varaiables exist on your host-machine

HOST_USER_GID
HOST_USER_UID

set these env vars

ie on macOS in ~/.extra or ~/.bash_profile

get HOST_USER_UID

id -u

get HOST_USER_GID

id -g

run

echo "export HOST_USER_GID=$(id -g)" >> ~/.bash_profile && echo "export HOST_USER_UID=$(id -u)" >> ~/.bash_profile && echo "export DOCKER_USER=$(id -u):$(id -g)" >> ~/.bash_profile

exports

export HOST_USER_GID=20
export HOST_USER_UID=502
export DOCKER_USER=502:20