From 57d6785f15fdc48e81b250a0289e569e7567a745 Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Sun, 9 Jun 2024 11:22:23 +0200 Subject: [PATCH] print image build time during proxy start --- app/Dockerfile | 2 +- app/entrypoint.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Dockerfile b/app/Dockerfile index 30cdae8..0ef685e 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -63,7 +63,7 @@ RUN python -m pip install --no-cache --no-index /root/wheels/* && \ COPY --chmod=0700 entrypoint.sh /root/entrypoint.sh COPY config . COPY src . - +RUN date > /build-date.txt EXPOSE 5005 # command to run on container start diff --git a/app/entrypoint.sh b/app/entrypoint.sh index 7698d41..b6f3d11 100644 --- a/app/entrypoint.sh +++ b/app/entrypoint.sh @@ -5,6 +5,7 @@ user="$(id -u)" echo "######################################################" echo "# prepare: '$SERVICE_NAME' Version:$VERSION" echo "# for running with UserID:$UID, GroupID:$GID" +echo "# Image built: $(cat /build-date.txt) " echo "#" if [ "$user" = '0' ]; then