nextpy
nextpy copied to clipboard
Updated Dockerfile
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.
- Restructured