Prevent .pyc files from the host from being included in Docker images (#10902)
This is: 1. A source of possible non-determinism (`.pyc` files may or may not be present depending on what the developer did before building the Docker image). 2. A potential data leak (a `.pyc` file contains the full path to the source file on the machine used to generated it). I don't think this should affect release images, since our release workflow does not run any Python scripts (so it doesn't generate `.pyc` files to begin with).
This commit is contained in:
@@ -16,3 +16,4 @@
|
||||
/changelog.d
|
||||
/cvat-cli
|
||||
/profiles
|
||||
**/__pycache__
|
||||
|
||||
Reference in New Issue
Block a user