blob: 17e9c5bfac094cc34ab59866abcb1d57d7ef468a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
FROM debian:7 AS BUILDBASE
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y perl-modules build-essential autoconf libtool automake libboost-dev git && rm -rf /var/lib/apt/lists/*
FROM BUILDBASE AS CUDA80
RUN touch /root/cuda80
COPY cuda_8.0.61_375.26_linux-run /root
RUN /bin/bash /root/cuda_8.0.61_375.26_linux-run --toolkit --silent && \
rm -f /root/cuda_8.0.61_375.26_linux-run
COPY cuda_8.0.61.2_linux-run /root
RUN /bin/bash /root/cuda_8.0.61.2_linux-run --silent --accept-eula && \
rm -f /root/cuda_8.0.61.2_linux-run
FROM BUILDBASE AS CUDA75
RUN touch /root/cuda75
COPY cuda_7.5.18_linux.run /root
RUN /bin/bash /root/cuda_7.5.18_linux.run --toolkit --silent && \
rm -f /root/cuda_7.5.18_linux.run
FROM BUILDBASE AS CUDA70
RUN touch /root/cuda70
COPY cuda_7.0.28_linux.run /root
RUN /bin/bash /root/cuda_7.0.28_linux.run -toolkit -silent && \
rm -f /root/cuda_7.0.28_linux.run
COPY cufft_patch_linux.tar.gz /root
RUN cd /usr/local/cuda-7.0 && \
tar xf /root/cufft_patch_linux.tar.gz && \
rm -f /root/cufft_patch_linux.tar.gz
FROM BUILDBASE AS CUDA60
RUN touch /root/cuda60
COPY cuda_6.0.37_linux_64.run /root
RUN /bin/bash /root/cuda_6.0.37_linux_64.run -toolkit -silent && \
rm -f /root/cuda_6.0.37_linux_64.run
FROM BUILDBASE AS CUDA55
RUN touch /root/cuda55
COPY cuda_5.5.22_linux_64.run /root
RUN /bin/bash /root/cuda_5.5.22_linux_64.run -toolkit -silent && \
rm /root/cuda_5.5.22_linux_64.run
FROM BUILDBASE
RUN touch /root/cuda
COPY --from=CUDA80 /usr/local/cuda-8.0 /usr/local/cuda-8.0
COPY --from=CUDA75 /usr/local/cuda-7.5 /usr/local/cuda-7.5
COPY --from=CUDA70 /usr/local/cuda-7.0 /usr/local/cuda-7.0
COPY --from=CUDA60 /usr/local/cuda-6.0 /usr/local/cuda-6.0
COPY --from=CUDA55 /usr/local/cuda-5.5 /usr/local/cuda-5.5
ENV PATH /root/miniconda3/bin:$PATH
COPY Miniconda3-4.3.27.1-Linux-x86_64.sh /root/
RUN /bin/bash /root/Miniconda3-4.3.27.1-Linux-x86_64.sh -b && \
rm -f /root/Miniconda3*
RUN conda install -y conda-build
|