# backup of file ~dock/docker/Dockerfile.debian.oldstable from Linux CI server # update: docker build -t scg-debian-oldstable:latest -f ~/docker/Dockerfile.debian.oldstable . # run: docker run -it scg-debian-oldstable:latest /bin/bash FROM debian:oldstable LABEL description="This is a Docker image based on stable Debian 12 (stable) to build and test software." WORKDIR /home/ ENV HOME=/root/ # dependencies RUN apt-get update RUN apt-get install -y \ curl git make g++ cmake \ libgsl-dev libfftw3-dev libtiff5-dev libboost-dev \ ccache # pyenv requirements RUN apt-get install -y libssl-dev zlib1g-dev \ libbz2-dev libreadline-dev libsqlite3-dev \ libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev # install pyenv RUN curl -fsSL https://pyenv.run | /bin/bash ENV PYENV_ROOT="/root/.pyenv" ENV PATH="$PYENV_ROOT/bin:/opt/cmake/bin:$PATH" # Python dependencies ARG PYDEPS="numpy matplotlib corner emcee lmfit scipy fabio tqdm wheel patchelf auditwheel" RUN pyenv install 3.10 3.11 3.12 RUN eval "$(pyenv init -)" && pyenv global 3.10 && pip install --upgrade pip && pip install ${PYDEPS} RUN eval "$(pyenv init -)" && pyenv global 3.11 && pip install --upgrade pip && pip install ${PYDEPS} RUN eval "$(pyenv init -)" && pyenv global 3.12 && pip install --upgrade pip && pip install ${PYDEPS} # build dependencies COPY ./bootstrap.sh "/home/" RUN sh /home/bootstrap.sh