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 ce0f7ef
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 @@ -18,6 +18,9 @@ set -eux
cp -r /app/.next/standalone /out
cp -r /app/.next/static /out/.next/static
cp -r /app/public /out/public
if [ -f /app/git-info.json ]; then
cp /app/git-info.json /out/git-info.json
fi
ls -la /out

mv /out/.next /out_next
Expand Down

0 comments on commit ce0f7ef

Please sign in to comment.