feat(ssr): add sitemap generator

This commit is contained in:
Lee
2023-11-07 23:05:11 +00:00
parent 4b966aaaae
commit 41d1d5f1d7
16 changed files with 129 additions and 16 deletions

View File

@ -38,6 +38,9 @@ COPY --from=builder --chown=nextjs:nodejs /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/package.json ./package.json
COPY --from=builder --chown=nextjs:nodejs /app/next.config.js ./next.config.js
# Generate sitemap
RUN npm run generate-sitemap
USER nextjs
EXPOSE 80
ENV HOSTNAME "0.0.0.0"