Use HOMEPAGE_BUILDTIME to revalidate container restart/recreate

This commit is contained in:
shamoon committed 2023-04-04 22:55:26 -07:00
1 parent a42c50f1cc
commit 6701e3bd77
4 files changed
+11 -9

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ COPY . .
SHELL ["/bin/ash", "-xeo", "pipefail", "-c"]
RUN npm run telemetry \
&& mkdir config && echo '---' > config/settings.yaml \
&& mkdir config \
&& NEXT_PUBLIC_BUILDTIME=$BUILDTIME NEXT_PUBLIC_VERSION=$VERSION NEXT_PUBLIC_REVISION=$REVISION npm run build
# Production image, copy all the files and run next