mirror of
https://github.com/yuzu-emu/build-environments.git
synced 2024-11-25 23:55:50 +01:00
cbbee60824
Ubuntu 20.04's version of Boost (1.71.0) is older than yuzu's minimum requirement (1.73.0). Thus the container was downloading Boost through conan each time it builds yuzu. Instead, install Boost through Conan ahead of time, as opposed to installed effectively garbage.
44 lines
1.4 KiB
Docker
44 lines
1.4 KiB
Docker
FROM ubuntu:20.04
|
|
MAINTAINER yuzu
|
|
# Create a user account yuzu (UID 1027) that the container will run as
|
|
RUN useradd -m -u 1027 -s /bin/bash yuzu && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y full-upgrade && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
|
|
build-essential \
|
|
gcc-10 \
|
|
g++-10 \
|
|
glslang-tools \
|
|
libavcodec-dev \
|
|
libavutil-dev \
|
|
libswscale-dev \
|
|
liblz4-dev \
|
|
libopus-dev \
|
|
libsdl2-dev \
|
|
libssl-dev \
|
|
libzip-dev \
|
|
libzstd-dev \
|
|
zlib1g-dev \
|
|
python \
|
|
python3-pip \
|
|
qtbase5-dev \
|
|
qtbase5-private-dev \
|
|
qttools5-dev \
|
|
qtwebengine5-dev \
|
|
libqt5opengl5-dev \
|
|
wget \
|
|
git \
|
|
ccache \
|
|
cmake \
|
|
ninja-build && \
|
|
pip3 install conan
|
|
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 && \
|
|
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
|
|
RUN apt-get clean autoclean && \
|
|
apt-get autoremove --yes && \
|
|
rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log
|
|
USER 1027
|
|
RUN conan install boost/1.73.0@ -s compiler.libcxx=libstdc++11 --build=missing && \
|
|
conan install catch2/2.13.0@ -s compiler.libcxx=libstdc++11 --build=missing && \
|
|
conan install fmt/7.1.2@ -s compiler.libcxx=libstdc++11 --build=missing && \
|
|
conan install nlohmann_json/3.9.1@ -s compiler.libcxx=libstdc++11 --build=missing
|