1- ARG UBUNTU_VERSION=24.04
1+ ARG UBUNTU_VERSION=25.10
22
3- ARG H2O_APP_PREFIX=/opt/h2o_app
3+ ARG H2O_APP_PREFIX=/opt/h2o-app
44
55FROM "ubuntu:${UBUNTU_VERSION}" AS compile
66
77ARG DEBIAN_FRONTEND=noninteractive
88RUN apt-get -yqq update && \
9- apt-get -yqq install \
10- ca-certificates \
11- curl \
12- lsb-release && \
13- install -dm755 /usr/share/postgresql-common/pgdg && \
14- curl --fail -LSso /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc \
15- "https://www.postgresql.org/media/keys/ACCC4CF8.asc" && \
16- sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] \
17- https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > \
18- /etc/apt/sources.list.d/pgdg.list' && \
19- apt-get -yqq update && \
209 apt-get -yqq install \
2110 autoconf \
2211 bison \
2312 cmake \
13+ curl \
2414 flex \
2515 g++ \
2616 libbpfcc-dev \
@@ -50,7 +40,7 @@ RUN curl -LSs "https://github.com/h2o/h2o/archive/${H2O_VERSION}.tar.gz" | \
5040 cmake \
5141 -B build \
5242 -DCMAKE_AR=/usr/bin/gcc-ar \
53- -DCMAKE_C_FLAGS="-flto -march=native -mtune=native" \
43+ -DCMAKE_C_FLAGS="-flto=auto -march=native -mtune=native" \
5444 -DCMAKE_RANLIB=/usr/bin/gcc-ranlib \
5545 -DWITH_MRUBY=on \
5646 -G Ninja \
@@ -63,7 +53,8 @@ ARG MUSTACHE_C_REVISION=7fe52392879d0188c172d94bb4fde7c513d6b929
6353WORKDIR /tmp/mustache-c-build
6454RUN curl -LSs "https://github.com/x86-64/mustache-c/archive/${MUSTACHE_C_REVISION}.tar.gz" | \
6555 tar --strip-components=1 -xz && \
66- CFLAGS="-flto -march=native -mtune=native -O3" ./autogen.sh && \
56+ CFLAGS="-flto=auto -march=native -mtune=native -O3 -Wno-implicit-function-declaration" \
57+ ./autogen.sh && \
6758 make -j "$(nproc)" install
6859
6960ARG H2O_APP_PREFIX
@@ -82,25 +73,12 @@ RUN cmake \
8273
8374FROM "ubuntu:${UBUNTU_VERSION}"
8475
85- ARG POSTGRESQL_VERSION=17
86-
8776ARG DEBIAN_FRONTEND=noninteractive
8877RUN apt-get -yqq update && \
89- apt-get -yqq install \
90- ca-certificates \
91- curl \
92- lsb-release && \
93- install -dm755 /usr/share/postgresql-common/pgdg && \
94- curl --fail -LSso /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc \
95- "https://www.postgresql.org/media/keys/ACCC4CF8.asc" && \
96- sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] \
97- https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > \
98- /etc/apt/sources.list.d/pgdg.list' && \
99- apt-get -yqq update && \
10078 apt-get -yqq install \
10179 libnuma1 \
102- libyajl2 \
103- "postgresql-client-${POSTGRESQL_VERSION}"
80+ libpq5 \
81+ libyajl2
10482ARG H2O_APP_PREFIX
10583COPY --from=compile "${H2O_APP_PREFIX}" "${H2O_APP_PREFIX}/"
10684COPY --from=compile /usr/local/lib/libmustache_c.so "${H2O_APP_PREFIX}/lib/"
@@ -113,10 +91,10 @@ ARG TFB_TEST_NAME
11391CMD ["taskset" , \
11492 "-c" , \
11593 "0" , \
116- "/opt/h2o_app /bin/h2o_app " , \
94+ "/opt/h2o-app /bin/h2o-app " , \
11795 "-a20" , \
11896 "-d" , \
11997 "dbname=hello_world host=tfb-database password=benchmarkdbpass sslmode=disable user=benchmarkdbuser" , \
12098 "-f" , \
121- "/opt/h2o_app /share/h2o_app /template" , \
99+ "/opt/h2o-app /share/h2o-app /template" , \
122100 "-m1" ]
0 commit comments