chore(docker): Prune hpx and cuda images

This commit is contained in:
Quentin Bourgerie
2022-12-13 18:01:24 +01:00
parent 4ed0c01d8e
commit ee2ae3ead3
2 changed files with 5 additions and 1 deletions

View File

@@ -8,3 +8,7 @@ RUN dnf install -y epel-release
RUN dnf update -y
RUN dnf -y module install nvidia-driver:latest-dkms
RUN dnf -y install cuda
FROM scratch
COPY --from=0 /usr/local/cuda-11.7/ /usr/local/cuda-11.7/
COPY --from=0 /usr/lib64/libcuda.so* /usr/lib64/

View File

@@ -21,5 +21,5 @@ RUN cd build && cmake \
-DHPX_WITH_MALLOC=system ..
RUN cd build && make -j2
FROM quay.io/pypa/manylinux_2_28_x86_64
FROM scratch
COPY --from=0 /hpx/ /hpx/