aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-02-16 17:11:38 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2022-02-16 18:47:36 +0100
commit85d78c1b8dd52488a0d572b2e3ff9ebdde99ab37 (patch)
tree3df1a86a4392878dd38203e7d557d09ebb8d6f4f
parent330b265134afd12e06884205e7b77334393864b8 (diff)
downloadgcc-85d78c1b8dd52488a0d572b2e3ff9ebdde99ab37.zip
gcc-85d78c1b8dd52488a0d572b2e3ff9ebdde99ab37.tar.gz
gcc-85d78c1b8dd52488a0d572b2e3ff9ebdde99ab37.tar.bz2
dockerfile: Install cargo-gccrs alongside gccrs
-rw-r--r--Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 8ef31ae..1ca3b16 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM ubuntu:latest
+FROM ubuntu:latest AS gcc-builder
RUN apt-get update; \
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
@@ -67,5 +67,8 @@ RUN /bin/sh -c set -ex; \
dpkg-divert --divert /usr/bin/g++.orig --rename /usr/bin/g++; \
update-alternatives --install /usr/bin/cc cc /usr/local/bin/gcc 999
+FROM rust
+COPY --from=gcc-builder /usr/ /usr/
+RUN cargo install --git https://github.com/Rust-GCC/cargo-gccrs cargo-gccrs
CMD ["bash"]