Skip to content

Commit

Permalink
ensure git-info.json exists in the built image
Browse files Browse the repository at this point in the history
for those isr (non ssr) pages, this file is required to be present
  • Loading branch information
Fallen-Breath committed Sep 30, 2024
1 parent d38450f commit f959bc2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ RUN npm run build
RUN <<EOT
set -eux

if [ -f /app/git-info.json ]; then
cp /app/git-info.json /out
fi
cp -r /app/.next/standalone /out
cp -r /app/.next/static /out/.next/static
cp -r /app/public /out/public
Expand Down

0 comments on commit f959bc2

Please sign in to comment.