Skip to content

Audit · 6 min

The container that takes ten seconds to stop

Generated when asked for a Dockerfile entrypoint that runs a server with some setup first.

shell
#!/bin/sh
set -e

echo "running migrations..."
./migrate

echo "starting server..."
./server

Before it runs

The orchestrator sends SIGTERM to stop the container. What happens?

Nothing has run

Read it first. Answer, and the same calls run here.

Everything you do here stays in this browser.Part of liter8.sh