<filename>Dockerfile<gh_stars>0
# MCPI-Reborn Pterodactyl-ready image

FROM arm32v7/debian:bullseye-slim

LABEL author="Alvarito050506" maintainer="<EMAIL>"

ENV DEBIAN_FRONTEND noninteractive

RUN useradd -m -d /home/container container
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y --no-install-recommends libgles1 libx11-6 zlib1g libfreeimage3 libglfw3 xinput libxfixes3
RUN apt clean && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /mnt/install/ && mkdir -p /mnt/server/ && chown -R container:container /mnt/

USER container
ENV HOME /home/container
ENV USER container
WORKDIR /home/container

COPY ./entrypoint.sh /entrypoint.sh
COPY ./minecraft-pi-reborn/minecraft-pi /home/container

CMD ["/usr/bin/bash", "/entrypoint.sh"]
