Debian Codegraph @

deploy/docker/Dockerfile.debian.oldstable

raw
1 # backup of file ~dock/docker/Dockerfile.debian.oldstable from Linux CI server
2
3 # update: docker build -t scg-debian-oldstable:latest -f ~/docker/Dockerfile.debian.oldstable .
4 # run: docker run -it scg-debian-oldstable:latest /bin/bash
5
6 FROM debian:oldstable
7
8 LABEL description="This is a Docker image based on stable Debian 12 (stable) to build and test software."
9
10 WORKDIR /home/
11 ENV HOME=/root/
12
13 # dependencies
14 RUN apt-get update
15
16 RUN apt-get install -y \
17 curl git make g++ cmake \
18 libgsl-dev libfftw3-dev libtiff5-dev libboost-dev \
19 ccache
20
21 # pyenv requirements <https://github.com/pyenv/pyenv/wiki#suggested-build-environment>
22 RUN apt-get install -y libssl-dev zlib1g-dev \
23 libbz2-dev libreadline-dev libsqlite3-dev \
24 libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
25
26 # install pyenv
27 RUN curl -fsSL https://pyenv.run | /bin/bash
28 ENV PYENV_ROOT="/root/.pyenv"
29 ENV PATH="$PYENV_ROOT/bin:/opt/cmake/bin:$PATH"
30
31 # Python dependencies
32 ARG PYDEPS="numpy matplotlib corner emcee lmfit scipy fabio tqdm wheel patchelf auditwheel"
33 RUN pyenv install 3.10 3.11 3.12
34 RUN eval "$(pyenv init -)" && pyenv global 3.10 && pip install --upgrade pip && pip install ${PYDEPS}
35 RUN eval "$(pyenv init -)" && pyenv global 3.11 && pip install --upgrade pip && pip install ${PYDEPS}
36 RUN eval "$(pyenv init -)" && pyenv global 3.12 && pip install --upgrade pip && pip install ${PYDEPS}
37
38 # build dependencies
39 COPY ./bootstrap.sh "/home/"
40 RUN sh /home/bootstrap.sh