Create a Dockerfile in your GCP project directory and then use the "docker build" command to build and push the Docker image to a GCP repository.