Skip to content

Update Dockerfile for production environment to run with non-root user #39

@Kavignon

Description

@Kavignon

Description

The application Dockerfile currently runs as the root user by default, a security risk in production environments. We must update the Dockerfile to follow best practices by creating and using a non-root user. This ensures the application runs with limited privileges, improving container security.

Tasks

  • The Dockerfile runs the application under a non-root user in production.
  • All files, dependencies, and build steps are accessible to the non-root user.
  • The CMD successfully starts the application using the non-root user.
  • The container image is tested to confirm proper functionality in production.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ContainerizationIssue relates with dev or production containersecurityPreventing misuse or vulnerabilities in software

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions