minecraft-pi-docker/Dockerfile

28 lines
661 B
Docker
Raw Normal View History

2020-09-25 16:43:53 +00:00
FROM arm64v8/debian:bullseye
RUN dpkg --add-architecture armhf
2020-10-04 20:45:00 +00:00
RUN \
apt-get update && \
apt-get upgrade -y && \
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
2020-09-25 16:43:53 +00:00
RUN ln -s /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 /usr/lib/libGLESv2.so
RUN ln -s /usr/lib/arm-linux-gnueabihf/libEGL.so.1 /usr/lib/libEGL.so
2020-10-01 15:08:46 +00:00
ADD ./build /app/build
2020-09-25 16:43:53 +00:00
WORKDIR /app
2020-09-27 00:48:46 +00:00
RUN ./build/download-minecraft-pi.sh
2020-09-25 16:43:53 +00:00
2020-09-27 00:48:46 +00:00
RUN ./build/build-libpng12.sh
2020-09-25 16:43:53 +00:00
2020-10-01 15:08:46 +00:00
ADD . /app
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