added engine seperation from posts and entrypoint for compose building

This commit is contained in:
venus
2026-09-13 21:12:06 -05:00
parent 04a39ca852
commit 42e7e0f1ff
5 changed files with 84 additions and 23 deletions
+8 -3
View File
@@ -17,12 +17,17 @@ RUN npm ci
# Copy application source files
COPY . .
RUN chmod +x /app/entrypoint.sh
# Build static production assets
# Pre-compile baseline static assets
RUN npm run build
# Expose web server port dynamically
EXPOSE ${PORT}
# Serve site with npm
CMD ["npm", "start"]
# Native container healthcheck probing IPv4 loopback
HEALTHCHECK --interval=30s --timeout=5s --start-period=3s --retries=3 \
CMD node -e "fetch('http://127.0.0.1:' + (process.env.PORT || 8080) + '/healthz').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"
# Serve site using dynamic entrypoint
ENTRYPOINT ["/app/entrypoint.sh"]