Skip to content
Sample code accompanying the blog post:
Python Dockerfile Shell
Branch: master
Clone or download
ahmetb integrate tini(1) as init process
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Latest commit d822967 Jul 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
Dockerfile integrate tini(1) as init process Jul 23, 2019
LICENSE Initial commit Jul 23, 2019
README.md Initial commit Jul 23, 2019
app.py Initial commit Jul 23, 2019
nginx.conf Initial commit Jul 23, 2019
start.sh Initial commit Jul 23, 2019

README.md

Example: multiple processes in a container (for Cloud Run)

Read the blog post for more details: http://ahmet.im/blog/cloud-run-multiple-processes-easy-way.

Build:

docker build -t foo .

Run:

docker run --port 5000:8080 --rm foo

Visit:

http://localhost:5000                  # served by Python server
http://localhost:5000/static/horse.jpg # served by NGINX
You can’t perform that action at this time.