This is the simplest S2I example
File | Description |
---|---|
Dockerfile | Defines the base builder image |
s2i/bin/assemble | Script that builds the application |
s2i/bin/run | Script that runs the application |
-
Build the base builder image
docker build -t s2i-base .
-
Build app image by the builder image
s2i build . s2i-base s2i-app
-
Run the app image
docker run --rm -ti s2i-app