Skip to content

Commit 6a294b9

Browse files
committed
build: Update Dockerfile.amazonlinux to use Amazon Linux 2023
1 parent e8fe4a1 commit 6a294b9

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Dockerfile.amazonlinux

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
1-
FROM amazonlinux:2
1+
FROM amazonlinux:2023
22

33
RUN mkdir /dreal4
44
COPY . /dreal4
55
WORKDIR /dreal4
66

77
# Install prerequisites.
8-
RUN yum install -y autoconf automake bison file flex gcc-c++ gcc-gfortran git gmp-devel make patch pkgconfig python3 tar wget which \
8+
RUN dnf install -y autoconf automake bison file flex gcc-c++ gcc-gfortran git gmp-devel make patch pkgconfig python3 tar wget which \
99
# Install COINOR-CLP
1010
&& wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew \
1111
&& chmod u+x coinbrew \
1212
&& ./coinbrew fetch build --prefix=/usr --tests=none Clp@1.17.7 \
13-
&& cp /usr/lib/pkgconfig/*.pc /usr/share/pkgconfig/ \
13+
&& cp /usr/lib64/pkgconfig/*.pc /usr/share/pkgconfig/ \
1414
# Install IBEX
1515
&& curl https://codeload.github.com/dreal-deps/ibex-lib/tar.gz/352eeeb2345fb2b7a7ec248b44770d8cdc4a5d67 | tar xz \
1616
&& cd ibex-lib-352eeeb2345fb2b7a7ec248b44770d8cdc4a5d67/ \
17-
&& CXXFLAGS=-std=c++0x ./waf configure --enable-shared --with-optim --with-solver --with-affine-extended --interval-lib=filib --lp-lib=clp --prefix=/opt/libibex/2.7.4 \
17+
&& ./waf configure --enable-shared --with-optim --with-solver --with-affine-extended --interval-lib=filib --lp-lib=clp --prefix=/opt/libibex/2.7.4 \
1818
&& ./waf install \
1919
&& cd - \
2020
# Install NLOPT
21-
&& amazon-linux-extras install epel -y \
22-
&& yum install NLopt-devel -y \
21+
&& dnf install -y NLopt-devel \
2322
# Install Bazel
24-
&& amazon-linux-extras install -y java-openjdk11 \
25-
&& wget https://github.com/bazelbuild/bazel/releases/download/8.5.0/bazel-8.5.0-linux-x86_64 -O /usr/bin/bazel \
23+
&& dnf install -y java-11-openjdk-devel \
24+
&& wget https://github.com/bazelbuild/bazel/releases/download/8.0.0/bazel-8.0.0-linux-x86_64 -O /usr/bin/bazel \
2625
&& chmod +x /usr/bin/bazel \
2726
# Build dReal
2827
&& cp /usr/include/FlexLexer.h ./third_party/com_github_westes_flex/FlexLexer.h \
@@ -31,4 +30,4 @@ RUN yum install -y autoconf automake bison file flex gcc-c++ gcc-gfortran git gm
3130
# Clean up
3231
&& cd / && rm -rf dreal4 \
3332
&& rm -rf /opt/libibex/2.7.4/{bin,include,share} \
34-
&& yum remove -y autoconf automake bison file flex gcc-c++ gcc-gfortran git java-11-openjdk java-11-openjdk-devel java-11-openjdk-headless make patch pkgconfig python3 tar wget which
33+
&& dnf remove -y autoconf automake bison file flex gcc-c++ gcc-gfortran git java-11-openjdk-devel make patch pkgconfig python3 tar wget which

0 commit comments

Comments
 (0)