Skip to content

Commit

Permalink
install cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundy committed Jul 30, 2024
1 parent 7d4b13f commit 5344e28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/minimal-runner-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
FROM ubuntu:20.04

RUN apt -yq update && \
apt -yq install --no-install-recommends git curl wget ca-certificates
apt -yq install --no-install-recommends git curl wget ca-certificates sudo

RUN groupadd -g 1000 ubuntu && useradd -ms /bin/bash -u 1000 -g 1000 ubuntu && \
groupadd -g 1001 runner && useradd -ms /bin/bash -u 1001 -g 1001 runner && \
echo "ALL ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

USER runner

# Install rustup and cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
. "$HOME/.cargo/env" && \
rustup default stable

CMD ["/bin/bash"]

0 comments on commit 5344e28

Please sign in to comment.