cd
into the project root and then...
docker build --tag "app:latest" --file "app.dockerfile" .
The --ipc=host command is particularly important if running Cypress in Docker. The --shm-size="1g" command is to enable higher shared memory usage in CI environments
docker run -i -t --ipc=host --shm-size="1g" "app:latest"