Use HOMEPAGE_BUILDTIME to revalidate container restart/recreate

This commit is contained in:
shamoon 2023-04-04 22:47:17 -07:00
parent a42c50f1cc
commit 6701e3bd77
4 changed files with 11 additions and 9 deletions

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