I am building a spring boot application using Kotlin + Firestore. I am using bootBuildImage command to build the Docker Image that I can use to deploy in Cloud Run. For security, I have the firebase key file defined in the application.properties file.
firebase.credential.path = secret/firebase-key.json
After the image is generated, when I run the application via docker run, application fails to start because it is not able to find the "secret/firebase-key.json" file.
I looked into documentation on how i can copy local files to the image, it did not find relevant result.
Is it possible to include property files like this in the image using bootBuildImage command? I am trying to avoid writing a Dockerfile and use bootBuildImage. TYIA