minecraft-pi-reborn/Dockerfile.client

50 lines
1.2 KiB
Docker
Raw Normal View History

2020-12-04 21:27:28 +00:00
# Runtime Base Environment
FROM arm32v7/debian:bullseye-slim AS runtime-base
2020-09-25 16:43:53 +00:00
2020-12-04 21:27:28 +00:00
ENV DEBIAN_FRONTEND noninteractive
2020-10-04 20:45:00 +00:00
RUN \
2020-12-04 21:27:28 +00:00
# Install Runtime Dependencies
2020-10-04 20:45:00 +00:00
apt-get update && \
2020-12-18 03:22:56 +00:00
apt-get install -y --no-install-recommends tini libgles1 libx11-6 libsdl1.2debian zlib1g libfreeimage3 libglfw3 xinput libxfixes3 && \
2020-12-04 21:27:28 +00:00
rm -rf /var/lib/apt/lists/*
2020-09-25 16:43:53 +00:00
2020-12-04 21:27:28 +00:00
# Compile Environment
FROM runtime-base AS build
ENV DEBIAN_FRONTEND noninteractive
RUN \
# Install Dependencies
apt-get update && \
apt-get install -y --no-install-recommends libgles-dev libx11-dev libxrandr-dev libsdl1.2-dev gcc g++ libc-dev make cmake zlib1g-dev git wget ca-certificates libfreeimage-dev libglfw3-dev xinput libxfixes-dev && \
rm -rf /var/lib/apt/lists/*
2020-09-25 16:43:53 +00:00
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-12-04 21:27:28 +00:00
RUN \
# Download MCPI
./build/download-minecraft-pi.sh && \
# Build LibPNG12
./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-12-04 21:27:28 +00:00
# Runtime Environment
FROM runtime-base AS runtime
# Include Exported Libraries
COPY --from=build /app/export /
# Include Mods
COPY --from=build /app/minecraft-pi /app/minecraft-pi
WORKDIR /app/minecraft-pi
2020-09-25 16:43:53 +00:00
2020-12-18 03:22:56 +00:00
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["./launcher"]