Skip to content

Instantly share code, notes, and snippets.

@Yanis002
Created September 7, 2025 15:21
Show Gist options
  • Select an option

  • Save Yanis002/54957bad6b1e3ccc23054e981d601b9e to your computer and use it in GitHub Desktop.

Select an option

Save Yanis002/54957bad6b1e3ccc23054e981d601b9e to your computer and use it in GitHub Desktop.
Dockerfile to build dolphin
FROM ubuntu:22.04 AS build
ENV TZ=UTC
ENV LANG=C.UTF-8
RUN apt-get update && \
apt-get install -y \
build-essential \
git \
cmake \
ffmpeg \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libswscale-dev \
libevdev-dev \
libusb-1.0-0-dev \
libxrandr-dev \
libxi-dev \
libpangocairo-1.0-0 \
qt6-base-private-dev \
libqt6svg6-dev \
libbluetooth-dev \
libasound2-dev \
libpulse-dev \
libgl1-mesa-dev \
libcurl4-openssl-dev \
libudev-dev \
libsystemd-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN git clone -b sd-gecko --single-branch https://github.com/Pokechu22/dolphin.git && cd dolphin
WORKDIR dolphin
RUN git -c submodule."Externals/Qt".update=none \
-c submodule."Externals/FFmpeg-bin".update=none \
-c submodule."Externals/libadrenotools".update=none \
submodule update --init --recursive && \
git pull --recurse-submodules
RUN mkdir build && \
cd build && \
cmake .. -DLINUX_LOCAL_DEV=true && \
make -j$(nproc) && \
cp -r ../Data/Sys Binaries/ && \
touch Binaries/portable.txt
FROM scratch AS artifacts
COPY --from=build /dolphin/build /build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment