Skip to content

Commit 1042786

Browse files
committed
dockerfile: change the base image ...
... to match Rust container image's base image Signed-off-by: Zixing Liu <liushuyu011@gmail.com>
1 parent ab84521 commit 1042786

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

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

33
RUN apt-get update; \
44
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
@@ -67,7 +67,7 @@ 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
70+
FROM rust:latest
7171
COPY --from=gcc-builder /usr/ /usr/
7272
RUN cargo install --git https://github.com/Rust-GCC/cargo-gccrs cargo-gccrs
7373

0 commit comments

Comments
 (0)