From 3aa3552389721c90db3c685950f2cca44849faa9 Mon Sep 17 00:00:00 2001 From: cameron Date: Fri, 18 Apr 2025 17:31:44 +0100 Subject: [PATCH] Add entrypoint.sh --- entrypoint.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..d074274 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,14 @@ +#!/bin/sh +set -e + +# Check if the buildstamp file exists +if [ -f /buildstamp.txt ]; then + # Read the build timestamp from the file + BUILD_TIMESTAMP=$(cat /buildstamp.txt) + # Echo the message + echo "This container is running an image that was built on: $BUILD_TIMESTAMP" +else + echo "Build timestamp file (/buildstamp.txt) not found!" +fi + +exec "$@" \ No newline at end of file