Add entrypoint.sh
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m14s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m14s
This commit is contained in:
parent
a98d9a671a
commit
3aa3552389
1 changed files with 14 additions and 0 deletions
14
entrypoint.sh
Normal file
14
entrypoint.sh
Normal file
|
@ -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 "$@"
|
Loading…
Add table
Add a link
Reference in a new issue