minecraft-pi-reborn/Dockerfile.client

35 lines
786 B
Docker
Raw Normal View History

2020-10-16 22:23:39 +00:00
FROM arm64v8/debian:bullseye
2020-09-25 16:43:53 +00:00
2020-11-11 15:22:14 +00:00
# Add ARM 32Bit
2020-09-25 16:43:53 +00:00
RUN dpkg --add-architecture armhf
2020-11-11 15:22:14 +00:00
# Install Dependencies
2020-10-04 20:45:00 +00:00
RUN \
apt-get update && \
2020-10-27 15:38:48 +00:00
apt-get dist-upgrade -y && \
2020-10-05 22:17:55 +00:00
apt-get install -y libglvnd-dev:armhf libsdl1.2-dev:armhf libx11-dev:armhf build-essential zlib1g-dev:armhf git cmake curl gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf libfreeimage-dev:armhf libglfw3-dev:armhf xinput:armhf libxfixes-dev:armhf
2020-09-25 16:43:53 +00:00
2020-11-11 15:22:14 +00:00
# Setup GLES Location
2020-09-25 16:43:53 +00:00
RUN ln -s /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 /usr/lib/libGLESv2.so
2020-11-11 15:22:14 +00:00
# Add Build Scripts
2020-10-01 15:08:46 +00:00
ADD ./build /app/build
2020-09-25 16:43:53 +00:00
WORKDIR /app
2020-11-11 15:22:14 +00:00
# Download MCPI
2020-09-27 00:48:46 +00:00
RUN ./build/download-minecraft-pi.sh
2020-09-25 16:43:53 +00:00
2020-11-11 15:22:14 +00:00
# Build LibPNG12
2020-09-27 00:48:46 +00:00
RUN ./build/build-libpng12.sh
2020-09-25 16:43:53 +00:00
2020-11-11 15:22:14 +00:00
# Add Code
2020-10-01 15:08:46 +00:00
ADD . /app
2020-11-11 15:22:14 +00:00
# Build Mods
2020-10-01 15:08:46 +00:00
RUN ./build/build-mods.sh
2020-09-27 00:48:46 +00:00
WORKDIR ./minecraft-pi
2020-09-25 16:43:53 +00:00
ENTRYPOINT ./launcher