Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (27 loc) · 1.45 KB
/
Copy pathDockerfile
File metadata and controls
30 lines (27 loc) · 1.45 KB
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
# Historical ROOT/Python 3.10 reference image, not for current PycWB (Python >=3.11).
# Current native CI uses envs/Dockerfile.ci-native.
FROM buildpack-deps:jammy
ARG ROOT_VERSION=6.26.14
ARG ROOT_ARCH=Linux-ubuntu22-x86_64-gcc11.4
ENV ROOTSYS=/usr/local
ENV PYTHONPATH=${ROOTSYS}/lib:${PYTHONPATH}
ENV CLING_STANDARD_PCH=none
# System deps and ROOT + healpix
RUN set -eux; \
wget -q https://root.cern/download/root_v${ROOT_VERSION}.${ROOT_ARCH}.tar.gz; \
tar -xf root_v${ROOT_VERSION}.${ROOT_ARCH}.tar.gz --strip-components=1 -C /usr/local/; \
apt-get update; \
apt-get -y install git dpkg-dev cmake pkg-config g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev tar gfortran subversion; \
apt-get -y install libfftw3-dev libcfitsio9 libsharp0 python3-pip; \
wget -q http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb; \
dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb; \
wget -q https://launchpad.net/ubuntu/+archive/primary/+files/libhealpix-cxx3_3.80.0-5_amd64.deb; \
wget -q https://launchpad.net/ubuntu/+archive/primary/+files/libhealpix-cxx-dev_3.80.0-5_amd64.deb; \
dpkg -i libhealpix-cxx3_3.80.0-5_amd64.deb; \
dpkg -i libhealpix-cxx-dev_3.80.0-5_amd64.deb; \
apt-get -y install python3-venv; \
ln -sf /usr/bin/python3 /usr/bin/python; \
python3 -m pip install --upgrade pip setuptools; \
rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
CMD ["python3", "--version"]