MissouriMRDT / Autonomy_Software

Use WORKDIR to switch to a directory DOK-DL3003
Anti-pattern
Minor
2 occurrences in this check
Use WORKDIR to switch to a directory
30    libjpeg-dev libjpeg-turbo8-dev libturbojpeg git-lfs ccache
31
32# Change into the user directory, download and unzip the github actions runner
33RUN cd /home/docker && mkdir actions-runner && cd actions-runner \34    && curl -O -L https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-arm64-${RUNNER_VERSION}.tar.gz \
35    && tar xzf ./actions-runner-linux-arm64-${RUNNER_VERSION}.tar.gz
36
Use WORKDIR to switch to a directory
30WORKDIR /home/docker
31
32# Change into the user directory, download and unzip the github actions runner
33RUN cd /home/docker && mkdir actions-runner && cd actions-runner \34    && curl -o actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz -L https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \
35    && tar xzf ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz
36