Complete overhaul - changed to pm2-runtime and the excellent prerender-plugin-fscache. Working excellently!

This commit is contained in:
2025-02-22 04:05:47 -05:00
parent 85336a52f9
commit b28d11474e
7 changed files with 82 additions and 363 deletions
+5 -5
View File
@@ -17,15 +17,15 @@ ENV CHROME_FLAGS="--headless --disable-gpu --no-sandbox --disable-dev-shm-usage
WORKDIR /home/node
USER root
RUN mkdir -p /home/node/prerender-cache && chown -R node:node /home/node/prerender-cache
RUN apt-get update && apt-get install -y \
chromium \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Already has git
# RUN apt-get update -y
RUN yarn add prerender prerender-memory-cache pm2 winston nodemailer
USER node:node
RUN yarn add prerender pm2 prerender-plugin-fscache
ENTRYPOINT ["node", "server.js"]
ENTRYPOINT ["pm2-runtime", "start", "ecosystem.config.js"]