From 6c5c304492267a2b657e58abb65e1de940e8ee18 Mon Sep 17 00:00:00 2001 From: Googol Lee Date: Thu, 29 Aug 2024 09:01:42 +0200 Subject: [PATCH] Fix the default value of BUILD_DATE. (#1027) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 25d9093..9e6e3fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,7 @@ COPY ui/package.json ui/package-lock.json /app/ui RUN npm ci COPY ui/ /app/ui -RUN if [ "$BUILD_DATE" = "" ]; then \ +RUN if [ "${BUILD_DATE}" = "undefined" ]; then \ export BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ'); \ export REACT_APP_BUILD_DATE=${BUILD_DATE}; \ fi; \