Sign inSign up

devries/hellosanic

By devries

Updated almost 6 years ago

A Hello World web container built with Sanic, Python 3.6, and Jinja2.

Image
0

467

devries/hellosanic repository overview

README

This is a demonstration Docker container with sanic. Try it on Google Cloud by clicking below:

Open in Cloud
Shell

Testing the Container
  1. Build the image using docker:
    docker build -f Dockerfile.alpine -t hellosanic .
    
  2. Run the container on port 8080:
    docker run --rm -p 8080:8080 hellosanic
    
  3. In the cloud shell right hand upper corner click "Web Preview > Preview on port 8080."
Move the Container to Container Registry
  1. You must have a project, and use a project name in the tags and calls below. We will use the sample name my-project-name in the examples below, but you should change this to match your project name.
  2. Tag the image for google:
    docker tag hellosanic gcr.io/my-project-name/hellosanic:latest
    
  3. Push to google container registry:
    gcloud docker -- push gcr.io/my-project-name/hellosanic
    

Tag summary

Content type

Image

Digest

Size

94.3 MB

Last updated

almost 6 years ago

docker pull devries/hellosanic