From 158660840c9ef715cba27ecf1611386b340a4ffa Mon Sep 17 00:00:00 2001 From: avi Date: Tue, 19 Aug 2025 20:52:28 +1200 Subject: [PATCH] ubuntu:18.04 -> ubuntu:22.04 --- Dockerfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a6a335a2f..f10abfead 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,10 @@ -FROM ubuntu:18.04 +FROM ubuntu:22.04 WORKDIR /app/COMPAS +# Prevent interactive prompts during package installation +ENV DEBIAN_FRONTEND=noninteractive + RUN apt-get update && apt-get install -y \ g++ \ libhdf5-serial-dev \ @@ -9,11 +12,11 @@ RUN apt-get update && apt-get install -y \ libgsl-dev \ python3 \ python3-pip \ - zip + zip \ + && rm -rf /var/lib/apt/lists/* -# RUN pip install numpy awscli -RUN pip3 install numpy -RUN pip3 install pyyaml +# Install Python packages +RUN pip3 install numpy pyyaml # Copy only the source required to compile COMPAS COPY src/ src/ @@ -26,4 +29,4 @@ ENV COMPAS_ROOT_DIR /app/COMPAS RUN cd src && make -f Makefile.docker -j $(nproc) # Run COMPAS -# CMD [ "python", "src/pythonSubmitDefault.py" ] +# CMD [ "python", "src/pythonSubmitDefault.py" ] \ No newline at end of file