-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
55 lines (48 loc) · 1.8 KB
/
Dockerfile
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 nvidia/cuda:12.4.1-devel-ubuntu22.04
ENV PATH /usr/local/cuda/bin${PATH:+:${PATH}}
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
# Update
RUN apt-get update
# Install git
RUN apt-get install -y git
RUN apt-get install -y python3-dev && \
apt-get install -y python3-pip && \
apt-get install -y python3-wheel && \
apt-get install -y python3-setuptools
# Install dependencies
RUN apt-get install -y build-essential && \
apt-get install -y cmake && \
apt-get install -y gfortran && \
apt-get install -y g++ && \
apt-get install -y libncurses5-dev && \
apt-get install -y libreadline-dev && \
apt-get install -y flex && \
apt-get install -y bison && \
apt-get install -y libblas-dev && \
apt-get install -y liblapacke-dev && \
apt-get install -y libcfitsio-dev && \
apt-get install -y wcslib-dev && \
apt-get install -y libfftw3-dev && \
apt-get install -y libhdf5-serial-dev && \
apt-get install -y python3-numpy && \
apt-get install -y libboost-all-dev && \
apt-get install -y libgsl-dev
# Install casacore
RUN git clone --single-branch --branch v3.5.0 https://github.com/casacore/casacore.git && \
cd casacore && \
mkdir build && \
cd build && \
cmake -DUSE_FFTW3=ON -DUSE_OPENMP=ON -DUSE_HDF5=ON -DBUILD_PYTHON3=ON -DUSE_THREADS=ON -DBUILD_PYTHON=OFF .. && \
make -j2 && \
make install
# Install CUDA samples
RUN cd /usr/local/cuda && \
git clone --single-branch --branch v11.6 https://github.com/NVIDIA/cuda-samples.git samples && \
cd samples && \
mv Common common && \
mv Samples samples && \
cd common && \
mkdir inc && \
mv *.h inc/
RUN echo "Hello there from gpuvmem base image"
LABEL org.opencontainers.image.source="https://github.com/miguelcarcamov/gpuvmem"