From a2a151c7b85b00a64f42f00a2027f234422e644d Mon Sep 17 00:00:00 2001 From: Julian Orchard Date: Thu, 18 Jan 2024 00:42:45 +0000 Subject: [PATCH] Add working docker container using Ubuntu 22.04 image Signed-off-by: Julian Orchard --- .dockerignore | 5 +++++ Dockerfile | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..b960f0a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +*.md +.git +.gitignore +.vscode +docs diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fc55121 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,35 @@ +FROM ubuntu:22.04 AS lindbergh-build + +RUN dpkg --add-architecture i386 \ + && apt-get update \ + && apt-get install -y --no-install-recommends \ + build-essential \ + freeglut3-dev:i386 \ + freeglut3:i386 \ + gcc-multilib \ + libglew-dev \ + libopenal-dev:i386 \ + libopenal1:i386 \ + libstdc++5:i386 \ + libxmu6:i386 \ + wget \ + xorg-dev \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /xenial-libs +RUN wget -q http://launchpadlibrarian.net/534757982/multiarch-support_2.23-0ubuntu11.3_i386.deb \ + && dpkg -i multiarch-support_2.23-0ubuntu11.3_i386.deb +RUN wget -q http://launchpadlibrarian.net/184146495/libalut0_1.1.0-5_i386.deb \ + && dpkg -i libalut0_1.1.0-5_i386.deb +RUN wget -q http://launchpadlibrarian.net/184146496/libalut-dev_1.1.0-5_i386.deb \ + && dpkg -i libalut-dev_1.1.0-5_i386.deb + +WORKDIR /lindbergh-loader +COPY . . + +RUN make + +# Output binaries of build using the --output=PATH argument +FROM scratch AS binaries +COPY --from=lindbergh-build /lindbergh-loader/build/* /