AKTheKnight / gcp-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple API for GCP

This repo outlines a simple toy-example of an API built with Flask in Python, containerized with Docker, and deployed to Google Cloud Platform (GCP).

Read the relevant article here.

Deploy

To create a docker image, navigate to this directory in a CLI and type:

docker build -t tut-api .

Next, deploy to GCP with:

gcloud builds submit --tag gcr.io/[PROJECT-ID]/tut-api

Finally, create a Cloud Run service using the new container.

About


Languages

Language:Python 93.9%Language:Dockerfile 6.1%