This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sometimes, you want to run a simple background process, as well as your main process, e.g. webserver. | |
# You can run multiple instances of your container, or you can use s6 or other supervisor tool | |
# | |
# Or, you can use a couple of simple tools | |
FROM ubuntu:22.04 | |
RUN apt update && apt install run-one # for run-one-constantly | |
# set up your app here | |
# tell tini to kill the whole process group, not just the one process | |
ENV TINI_KILL_PROCESS_GROUP=1 | |
COPY entrypoint.sh /entrypoint.sh |
OlderNewer