2022-06-30 19:30:24 +00:00
|
|
|
FROM ubuntu:22.04 as build
|
|
|
|
|
2022-07-03 14:27:48 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
g++ \
|
|
|
|
g++-multilib \
|
2022-07-06 11:03:19 +00:00
|
|
|
cmake \
|
|
|
|
ninja-build
|
2022-06-30 19:30:24 +00:00
|
|
|
|
2022-07-03 14:27:48 +00:00
|
|
|
COPY . /wibo
|
2022-06-30 19:30:24 +00:00
|
|
|
|
2022-07-06 11:03:19 +00:00
|
|
|
# Replace with RelWithDebInfo when -O2 crash is fixed
|
|
|
|
RUN cmake -S /wibo -B /wibo/build -G Ninja -DCMAKE_BUILD_TYPE=Debug
|
|
|
|
RUN cmake --build /wibo/build
|
2022-06-30 19:30:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
FROM ubuntu:22.04
|
|
|
|
|
|
|
|
RUN dpkg --add-architecture i386 \
|
|
|
|
&& apt-get update \
|
2022-07-03 14:27:48 +00:00
|
|
|
&& apt-get install -y --no-install-recommends \
|
|
|
|
libstdc++6:i386
|
2022-06-30 19:30:24 +00:00
|
|
|
|
2022-07-06 11:03:19 +00:00
|
|
|
COPY --from=build /wibo/build/wibo /usr/local/sbin/wibo
|
2022-06-30 19:30:24 +00:00
|
|
|
|
|
|
|
CMD /usr/local/sbin/wibo
|