MissouriMRDT / Autonomy_Software

Found consecutive RUN commands DOK-W1001
Anti-pattern
Minor
4 days ago14 days old
Multiple consecutive RUN instructions. Consider consolidation.
48
49# Set Ownership of Autonomy Software
50RUN chown docker -R /usr/local/zed
51RUN chown docker -R /usr/local/cuda52
53# Add over the start.sh script
54ADD scripts/start.sh start.sh
Multiple consecutive RUN instructions. Consider consolidation.
47RUN rm -rf /opt/Autonomy_Software
48
49# Set Ownership of Autonomy Software
50RUN chown docker -R /usr/local/zed51RUN chown docker -R /usr/local/cuda
52
53# Add over the start.sh script
Multiple consecutive RUN instructions. Consider consolidation.
48
49# Set Ownership of Autonomy Software
50RUN chown docker -R /usr/local/zed
51RUN chown docker -R /usr/local/cuda52
53# Add over the start.sh script
54ADD scripts/start.sh start.sh
Multiple consecutive RUN instructions. Consider consolidation.
47RUN rm -rf /opt/Autonomy_Software
48
49# Set Ownership of Autonomy Software
50RUN chown docker -R /usr/local/zed51RUN chown docker -R /usr/local/cuda
52
53# Add over the start.sh script
Multiple consecutive RUN instructions. Consider consolidation.
122RUN echo 'export MAKEFLAGS=-j$(($(grep -c "^processor" /proc/cpuinfo) - 1))' >> .bashrc
123
124# Clone Autonomy Software Repository
125RUN git clone --recurse-submodules -j8 https://github.com/MissouriMRDT/Autonomy_Software.git /opt/Autonomy_Software126
127# Set Working Directory
128WORKDIR /opt/Autonomy_Software/