cakefoot/src/Ubuntu18.Dockerfile

37 lines
2.0 KiB
Docker

# /\ +-------------------------------------------------------+
# ____/ \____ /| Open source game framework licensed to freely use, |
# \ / / | copy, and modify. Created for [dank.game] |
# +--\ ^__^ /--+ | |
# | ~/ \~ | | Download at https://open.shampoo.ooo/shampoo/spacebox |
# | ~~~~~~~~~~~~ | +-------------------------------------------------------+
# | SPACE ~~~~~ | /
# | ~~~~~~~ BOX |/
# +--------------+
#
# Docker instructions for building an Ubuntu 18.04 container with everything necessary for compiling Cakefoot.
#
# Build with the tag "cakefoot-ubuntu18" for compatbility with the Makefile.
#
# sudo docker build -t cakefoot-ubuntu18 src/Ubuntu18.Dockerfile
FROM ubuntu:18.04
RUN sed -i '/deb-src/s/^# //' /etc/apt/sources.list && \
apt update && \
apt upgrade -y && \
apt install -y wget build-essential clang-8 git rsync && \
apt build-dep -y libsdl2 && \
apt clean -y && apt autoclean -y && \
rm -rf /var/lib/apt/lists/* && \
wget https://github.com/libsdl-org/SDL/releases/download/release-2.24.2/SDL2-2.24.2.tar.gz && \
wget https://github.com/libsdl-org/SDL_image/releases/download/release-2.6.2/SDL2_image-2.6.2.tar.gz && \
wget https://github.com/libsdl-org/SDL_ttf/releases/download/release-2.20.1/SDL2_ttf-2.20.1.tar.gz && \
wget https://github.com/libsdl-org/SDL_mixer/releases/download/release-2.6.2/SDL2_mixer-2.6.2.tar.gz && \
tar -xf SDL2-2.24.2.tar.gz && cd SDL2-2.24.2/ && ./configure && make && make install && cd .. && \
tar -xf SDL2_image-2.6.2.tar.gz && cd SDL2_image-2.6.2/ && ./configure && make && make install && cd .. && \
tar -xf SDL2_ttf-2.20.1.tar.gz && cd SDL2_ttf-2.20.1/ && ./configure && make && make install && cd .. && \
tar -xf SDL2_mixer-2.6.2.tar.gz && cd SDL2_mixer-2.6.2/ && ./configure && make && make install && cd .. && \
ldconfig && \
rm -rf SDL2* && \
git clone --recursive https://open.shampoo.ooo/shampoo/cakefoot