Skip to content

Commit 85d78c1

Browse files
committed
dockerfile: Install cargo-gccrs alongside gccrs
1 parent 330b265 commit 85d78c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:latest
1+
FROM ubuntu:latest AS gcc-builder
22

33
RUN apt-get update; \
44
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
@@ -67,5 +67,8 @@ RUN /bin/sh -c set -ex; \
6767
dpkg-divert --divert /usr/bin/g++.orig --rename /usr/bin/g++; \
6868
update-alternatives --install /usr/bin/cc cc /usr/local/bin/gcc 999
6969

70+
FROM rust
71+
COPY --from=gcc-builder /usr/ /usr/
72+
RUN cargo install --git https://github.com/Rust-GCC/cargo-gccrs cargo-gccrs
7073

7174
CMD ["bash"]

0 commit comments

Comments
 (0)