Fix the default value of BUILD_DATE. (#1027)
This commit is contained in:
parent
bb66a8b791
commit
6c5c304492
|
@ -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; \
|
||||
|
|
Loading…
Reference in New Issue