To deploy and run the image on Cloud Run, go to the GCP console.
Open the project for this repository.
Go to the Cloud Run service.
Open the currently running service.
Click on "Edit and deploy new revision"
Amend the settings and / or select another image from the artifact registry
Ensure you add the NODE_ENV
env variable with production
as a value
Click Deploy
at the bottom
We need to match the image tag currently used in the Artifact Registry.
In the GCP console, inside the project that holds the image, open the Artifact Registry service. The image will be under the docker-images
folder, and will contain the name of this repo eq-v2-prototypes
.
You can also deduct the name manually:
$ $LOCATION-docker.pkg.dev/$PROJECT-ID/$REPOSITORY/$IMAGE
More details in the GCP documentation
docker build . $imagename
Ensure you are authenticated to the repository in Docker.
Then
docker push $imagename
docker-compose up
Then in the browser
localhost:3000