11# Based on old ubuntu to create more compatible binaries
22
3- # To build (e.g. for ShapeWorks 6.5 ):
4- # docker build --progress=plain -t akenmorris/ubuntu-build-box-focal-sw65 .
3+ # To build (e.g. for ShapeWorks 6.7 ):
4+ # docker build --progress=plain -t akenmorris/ubuntu-build-box-jammy-sw67 .
55# To publish:
6- # docker push akenmorris/ubuntu-build-box-focal-sw65
6+ # docker push akenmorris/ubuntu-build-box-jammy-sw67
77
8- FROM ubuntu:focal-20240123 AS env
8+ FROM ubuntu:jammy-20250819 AS env
991010
1111# Set environment variables
12- ENV PATH=/opt/conda/bin:/opt/rh/devtoolset-9/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
13- ENV LDFLAGS=-L/opt/conda/lib
12+ ENV PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
1413
1514ARG DEBIAN_FRONTEND=noninteractive
1615ENV TZ=Etc/UTC
1716
1817# Update
1918RUN apt-get update -y && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get install build-essential software-properties-common -y && add-apt-repository ppa:ubuntu-toolchain-r/test -y && apt-get update -y
2019
21- # Install GCC 9
22- RUN apt-get install gcc-9 g++-9 -y
23- RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && update-alternatives --config gcc
24-
2520# Install git and git-lfs
2621RUN add-apt-repository ppa:git-core/ppa
2722RUN apt-get update
@@ -36,6 +31,8 @@ RUN apt-get install rsync freeglut3-dev libgl1-mesa-dev libegl1-mesa zip libcups
3631RUN curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/Miniconda3-latest-Linux-x86_64.sh \
3732 && bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda \
3833 && ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh \
34+ && /opt/conda/bin/conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/main \
35+ && /opt/conda/bin/conda tos accept --override-channels --channel https://repo.anaconda.com/pkgs/r \
3936 && conda update -n base -c defaults conda \
4037 && conda install pip \
4138 && echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc \
0 commit comments