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