2020-07-14 10:43:50 +00:00
|
|
|
# --- Stage 1: Builder ---
|
|
|
|
FROM ubuntu:20.04 as builder
|
2020-07-13 17:59:01 +00:00
|
|
|
|
|
|
|
RUN DEBIAN_FRONTEND="noninteractive" apt-get update
|
|
|
|
RUN DEBIAN_FRONTEND="noninteractive" apt install -y cmake \
|
2024-01-19 05:27:03 +00:00
|
|
|
clang-10 llvm-10 nasm ninja-build pkg-config \
|
|
|
|
libcap-dev libglfw3-dev libepoxy-dev python3-dev libsdl2-dev \
|
|
|
|
python3 linux-headers-generic \
|
|
|
|
git
|
2020-07-13 17:59:01 +00:00
|
|
|
|
2024-01-19 05:27:03 +00:00
|
|
|
RUN git clone --recurse-submodules https://github.com/FEX-Emu/FEX.git
|
2020-07-13 17:59:01 +00:00
|
|
|
|
|
|
|
CMD [ "mkdir /opt/FEX/build" ]
|
|
|
|
|
|
|
|
WORKDIR /opt/FEX/build
|
|
|
|
|
|
|
|
ARG CC=clang-10
|
|
|
|
ARG CXX=clang++-10
|
2020-07-13 18:08:28 +00:00
|
|
|
RUN cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release
|
2020-07-13 17:59:01 +00:00
|
|
|
RUN ninja
|
2020-07-14 10:43:50 +00:00
|
|
|
|
|
|
|
# --- Stage 2: Runner ---
|
|
|
|
FROM ubuntu:20.04
|
|
|
|
|
|
|
|
RUN DEBIAN_FRONTEND="noninteractive" apt-get update
|
2021-01-26 10:33:21 +00:00
|
|
|
RUN DEBIAN_FRONTEND="noninteractive" apt install -y \
|
2021-06-13 01:28:08 +00:00
|
|
|
libcap-dev libglfw3-dev libepoxy-dev
|
2020-07-14 10:43:50 +00:00
|
|
|
|
|
|
|
COPY --from=builder /opt/FEX/build/Bin/* /usr/bin/
|
2020-07-13 17:59:01 +00:00
|
|
|
|
|
|
|
WORKDIR /root
|