Ensure not using the current FROM alias as COPY '--from' value
Risk Level: medium
Platform: Docker
Spectral Rule ID: DOCKR012
REMEDIATION
Instead of copy file between container and itself, you can use RUN cp and get the same functionality.
FROM someimage:tag as build
- COPY --from=build /binary /
+ RUN cp /binary /
RUN python main.pyRead more:
Updated 7 months ago