nextpy icon indicating copy to clipboard operation
nextpy copied to clipboard

Updated Dockerfile

Open anirudh-hegde opened this issue 10 months ago • 1 comments

Description:

  • There is a good reason to use --no-cache-dir when you are building Docker images. The cache is usually useless in a Docker image, and you can definitely shrink the image size by disabling the cache.
  • The CMD instruction uses the shell form to execute the command within a shell and is enclosed within sh -c "..." to ensure proper execution of the shell command.

Summary by CodeRabbit

  • Refactor
    • Restructured RUN commands in Dockerfile for improved readability and maintainability.
    • Updated CMD instruction to use array form for better shell parsing.

anirudh-hegde avatar Apr 15 '24 15:04 anirudh-hegde