Set HOME environment variable for Docker user in Dockerfile

This commit is contained in:
Palash Tyagi 2025-05-05 01:38:13 +01:00
parent 5e03e7f1e5
commit 345166b16c

View File

@ -19,6 +19,7 @@ RUN apt install -y --no-install-recommends \
# Install Rust and Cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/home/docker/.cargo/bin:${PATH}"
ENV HOME="/home/docker"
RUN cd /home/docker && mkdir actions-runner && cd actions-runner \
&& curl -O -L https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \