updated dockerFile
All checks were successful
DevSecOps-Multibranch/pipeline/head This commit looks good

This commit is contained in:
2025-11-30 12:52:29 +00:00
parent cd3b5d242d
commit 22e842bf87

View File

@@ -25,10 +25,10 @@ USER nodeapp
# Health check # Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:3001/health || exit 1 CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1
# Expose port # 2. Fix Expose to match the app
EXPOSE 3001 EXPOSE 3000
# Start the application # Start the application
CMD ["node", "server.js"] CMD ["node", "server.js"]