Can any one help how to build a docker image from the cloned git repository

However, I tried below
meteor build --directory /tmp/rc-build
cp .docker/Dockerfile /tmp/rc-build
cd /tmp/rc-build
docker build -t someimage

but seems like the docker does not build from the local repository