diff --git a/Dockerfile_test_app b/Dockerfile_test_app index f1bf22f..a4bfb6b 100644 --- a/Dockerfile_test_app +++ b/Dockerfile_test_app @@ -1,14 +1,10 @@ FROM nginx:1.27-alpine -COPY .git /tmp/repo/.git - # Configure nginx to listen on 5001 to match container port expectations. RUN sed -i 's/listen 80;/listen 5001;/' /etc/nginx/conf.d/default.conf -# Build a custom landing page directly in the image and inject git revision. +# Build a custom landing page directly in the image. RUN set -eux; \ - apk add --no-cache --virtual .git-deps git; \ - GIT_REVISION="$(git --git-dir=/tmp/repo/.git rev-parse --short HEAD 2>/dev/null || echo unknown)"; \ { \ echo ''; \ echo ''; \ @@ -21,11 +17,9 @@ RUN set -eux; \ echo '
Custom landing page for the Brencher test app container.
'; \ echo 'Port: 5001
'; \ - echo "Git revision: ${GIT_REVISION}
"; \ + echo 'Git revision: unknown
'; \ echo ''; \ echo '