Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile example for Static Python Container

Dockerfile copies python parts, including the file to the image. Build this:

docker build -t sample-python-app-subprocess .


# Prebuilt version

docker run thedoh/sample-python-app-subprocess:latest

# Build it yourself version

docker run sample-python-app-subprocess

Program Flow

  1. Docker starts this image
  2. CMD calls /python -s -S /
  3. uses to call /python -s -S /` as a sub-process (ie, child process of pid 1)
  4. Execution begins from within, being executed by /python (the static binary)
  5. When finishes running then execution is returned to just after the line.
You can’t perform that action at this time.