# Docker File Operations Best Practices - ID: docker-file-operations - Severity: LOW - Languages: Dockerfile - Frameworks: docker ## Description Detects ADD usage instead of COPY and copying entire build context. ## Detection Message {issue_type}. Use specific paths (e.g., COPY src/ ./src/) or create a .dockerignore file to exclude sensitive files and build artifacts. ## Remediation Use COPY instead of ADD for local files. ```dockerfile COPY package*.json ./ COPY src/ ./src/ ``` Learn more: https://shoulder.dev/learn/docker/file-operations ## Documentation [object Object] ## Related Rules - **Docker Build Optimization and Best Practices** [LOW]: - **Docker Compose Obsolete Version Field** [LOW]: - **Invalid Port Number in EXPOSE** [ERROR]: - **Multiple ENTRYPOINT Instructions** [MEDIUM]: - **** [MEDIUM]: