1 . Run Image : rajshah/fdproject-fireapp:(VERSION_NAME)
- Push Changes to Github :
- Run Manual Docker Build and Push Workflow In Action (Provide Unique Version Name)
- Now , Update the Container to Add Google-Credentails.json>
3.1 Go to the Directory where google-credentails are saved.
3.2 ls to verify
3.3 export IMAGE_URL=rajshah1/fdproject-fireapp:v22 (Version Can be anything provided in step 2)
3.4 docker create --name temp_container $IMAGE_URL (This Creates a Temp Container)
3.5 docker cp ./google/google-credentials.json temp_container:/google-credentials.json
3.6 docker commit temp_container $IMAGE_URL
3.7 docker push $IMAGE_URL
This Pushes the image with same tag with google-credentails File
Run the Image using : docker run -it -p 8080:8080 rajshah1/fdproject-fireapp:v22