Skip to content

Commit a7eed61

Browse files
authored
docker image ubuntu:18.04 -> ubuntu:22.04 (#1429)
1 parent 806c263 commit a7eed61

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
FROM ubuntu:18.04
1+
FROM ubuntu:22.04
22

33
WORKDIR /app/COMPAS
44

5+
# Prevent interactive prompts during package installation
6+
ENV DEBIAN_FRONTEND=noninteractive
7+
58
RUN apt-get update && apt-get install -y \
69
g++ \
710
libhdf5-serial-dev \
811
libboost-all-dev \
912
libgsl-dev \
1013
python3 \
1114
python3-pip \
12-
zip
15+
zip \
16+
&& rm -rf /var/lib/apt/lists/*
1317

14-
# RUN pip install numpy awscli
15-
RUN pip3 install numpy
16-
RUN pip3 install pyyaml
18+
# Install Python packages
19+
RUN pip3 install numpy pyyaml
1720

1821
# Copy only the source required to compile COMPAS
1922
COPY src/ src/
@@ -26,4 +29,4 @@ ENV COMPAS_ROOT_DIR /app/COMPAS
2629
RUN cd src && make DOCKER_BUILD=1 -j $(nproc)
2730

2831
# Run COMPAS
29-
# CMD [ "python", "src/pythonSubmitDefault.py" ]
32+
# CMD [ "python", "src/pythonSubmitDefault.py" ]

0 commit comments

Comments
 (0)