Skip to content

Instantly share code, notes, and snippets.

View gimmi's full-sized avatar

Gian Marco Gherardi gimmi

View GitHub Profile
@gimmi
gimmi / Dockerfile.wait
Last active January 22, 2023 19:10
bash
# syntax=docker/dockerfile:1
FROM busybox:musl
# IMPORTANT: line ending must be LF, indentation must be tabs
COPY --chmod=777 <<-EOF /wait.sh
#!/bin/sh
trap 'pkill sleep' INT TERM
echo 'Started, press Ctrl+C to stop'
sleep infinity &
wait