@@ -34,6 +34,18 @@ COPY debian/entrypoint.sh /entrypoint.sh
3434ENTRYPOINT ["/entrypoint.sh" ]
3535
3636
37+ # This can be removed if/when we implement hermetic gcc toolchains
38+ FROM worker-base AS gcc-base
39+ RUN --mount=type=tmpfs,target=/var/cache/apt \
40+ --mount=type=tmpfs,target=/var/lib/apt/lists \
41+ --mount=type=bind,source=/common_fun.sh,target=/common_fun.sh \
42+ --mount=type=bind,source=/debian/fun.sh,target=/debian/fun.sh \
43+ . ./debian/fun.sh \
44+ && install_gcc
45+ COPY debian/entrypoint.sh /entrypoint.sh
46+ ENTRYPOINT ["/entrypoint.sh" ]
47+
48+
3749FROM ci-base AS docker-base
3850ARG APT_KEY_K8S=https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/Debian_Testing/Release.key \
3951 APT_KEY_DOCKER=https://download.docker.com/linux/debian/gpg
@@ -108,6 +120,13 @@ RUN --mount=type=bind,source=/common_fun.sh,target=/common_fun.sh \
108120 . ./debian/fun.sh \
109121 && stamp_build worker "$CONTAINER_TAG"
110122
123+ FROM gcc-base AS gcc
124+ ARG CONTAINER_TAG
125+ RUN --mount=type=bind,source=/common_fun.sh,target=/common_fun.sh \
126+ --mount=type=bind,source=/debian/fun.sh,target=/debian/fun.sh \
127+ . ./debian/fun.sh \
128+ && stamp_build gcc "$CONTAINER_TAG"
129+
111130FROM docker-base AS docker
112131ARG CONTAINER_TAG
113132RUN --mount=type=bind,source=/common_fun.sh,target=/common_fun.sh \
0 commit comments