Public | Automated Build

Last pushed: 5 months ago
Short Description
A Hello World web container built with Sanic, Python 3.6, and Jinja2.
Full Description


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

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
  3. Push to google container registry:
     gcloud docker -- push
Docker Pull Command
Source Repository