azahar/docker/azahar-room/Dockerfile
OpenSauce04 e1a7c24ecd docker: Improved build times by disabling unnecessary libraries
This can definitely be further improved, as there are Citra components which are also built unnecessarily, but that would require invasive CMake changes which are out of scope for this PR.
2025-12-02 10:54:42 +00:00

30 lines
1.2 KiB
Docker

# This Dockerfile assumes that it is being built from the project root directory, e.g.:
# $ docker build -f docker/azahar-room/Dockerfile -t azahar-room .
# --- Builder ----------------
FROM opensauce04/azahar-build-environment:latest AS builder
COPY . /var/azahar-src
RUN mkdir builddir && cd builddir && \
cmake /var/azahar-src -DENABLE_QT=OFF \
-DENABLE_TESTS=OFF \
-DENABLE_ROOM=ON \
-DENABLE_ROOM_STANDALONE=ON \
-DENABLE_OPENGL=OFF $(:"TODO: Can we disable these automatically when there's no frontend?") \
-DENABLE_VULKAN=OFF \
-DENABLE_SDL2=OFF \
-DENABLE_LIBUSB=OFF \
-DENABLE_CUBEB=OFF \
-DENABLE_OPENAL=OFF && \
cmake --build . -j$(nproc) && \
mv bin/Release/azahar-room /usr/local/bin/ && \
cd .. && rm -rf builddir
# --- Final ------------------
FROM debian:trixie
RUN apt-get update && apt-get -y full-upgrade
RUN apt-get install -y iputils-ping net-tools
COPY --from=builder /usr/local/bin/azahar-room /usr/local/bin/azahar-room