- Switched base image to nginxinc/nginx-unprivileged for improved security. - Adjusted user permissions and ownership settings for better compliance with non-root user practices. - Removed unnecessary commands related to pid and user configuration in nginx.conf.