Dockerfile entrypoint to just run
✓ Published0🌍 Public
WWilliamQLiu
Last edited Jan 24, 2019
Created on Jan 24, 2019
This example demonstrates a Dockerfile that uses an `ENTRYPOINT` of `["tail", "-f", "/dev/null"]` to keep a container running indefinitely after it starts. It shows a minimal, practical pattern for maintaining a persistent container process without needing an application to run. The code relies solely on the Dockerfile’s `ENTRYPOINT` instruction, invoking the `tail` command with the `-f` flag to follow the null device, which yields no output while preventing the container from exiting.
AI-generated description