1
Fork 0

Fix the default value of BUILD_DATE. (#1027)

This commit is contained in:
Googol Lee 2024-08-29 09:01:42 +02:00 committed by GitHub
parent bb66a8b791
commit 6c5c304492
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ COPY ui/package.json ui/package-lock.json /app/ui
RUN npm ci RUN npm ci
COPY ui/ /app/ui 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 BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ'); \
export REACT_APP_BUILD_DATE=${BUILD_DATE}; \ export REACT_APP_BUILD_DATE=${BUILD_DATE}; \
fi; \ fi; \