2022-07-05 21:10:14 -04:00
|
|
|
FROM ubuntu:20.04 as build
|
2022-05-11 13:18:24 -04:00
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2022-07-05 21:10:14 -04:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get upgrade -y && \
|
|
|
|
apt-get install -y \
|
|
|
|
binutils \
|
|
|
|
gcc-10 \
|
|
|
|
g++-10 \
|
2022-07-05 23:08:06 -04:00
|
|
|
patchelf \
|
2022-07-05 21:10:14 -04:00
|
|
|
p7zip-full \
|
|
|
|
python3.9 \
|
|
|
|
make \
|
|
|
|
cmake \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
lld \
|
|
|
|
libsdl2-dev \
|
|
|
|
zlib1g-dev \
|
|
|
|
libbz2-dev \
|
|
|
|
libpng-dev \
|
|
|
|
libgles2-mesa-dev && \
|
|
|
|
ln -s /usr/bin/g++-10 /usr/bin/g++ && \
|
|
|
|
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 && \
|
|
|
|
gcc --version && \
|
|
|
|
g++ --version
|
|
|
|
|
|
|
|
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt /var/lib/cache /var/lib/log
|
|
|
|
|
2022-05-11 13:18:24 -04:00
|
|
|
RUN git clone https://github.com/Perlmint/glew-cmake.git && \
|
2022-07-05 21:10:14 -04:00
|
|
|
cmake glew-cmake && \
|
|
|
|
make -j$(nproc) && \
|
|
|
|
make install
|
|
|
|
|
|
|
|
ENV SDL2VER=2.0.22
|
|
|
|
RUN curl -sLO https://libsdl.org/release/SDL2-${SDL2VER}.tar.gz && \
|
|
|
|
tar -xzf SDL2-${SDL2VER}.tar.gz && \
|
|
|
|
cd SDL2-${SDL2VER} && \
|
|
|
|
./configure --prefix=/usr && \
|
|
|
|
make && make install && \
|
|
|
|
rm ../SDL2-${SDL2VER}.tar.gz && \
|
|
|
|
cp -av /lib/libSDL* /lib/x86_64-linux-gnu/
|
2022-05-11 13:18:24 -04:00
|
|
|
|
|
|
|
RUN mkdir /soh
|
|
|
|
WORKDIR /soh
|