minecraft-pi-reborn/Dockerfile

32 lines
645 B
Docker
Raw Normal View History

2021-09-12 03:18:12 +00:00
FROM debian:bullseye-slim
2021-06-21 17:26:55 +00:00
# Install
RUN \
apt-get update && \
2022-03-09 23:47:31 +00:00
apt-get install -y tini sed && \
2021-06-21 17:26:55 +00:00
apt-get --fix-broken install -y && \
rm -rf /var/lib/apt/lists/*
2022-03-09 23:47:31 +00:00
# Copy AppImage
RUN mkdir /app
ADD ./out/minecraft-pi-reborn-server-*-amd64.AppImage /app
# Extract AppImage
WORKDIR /app
RUN \
sed -i '0,/AI\x02/{s|AI\x02|\x00\x00\x00|}' ./*.AppImage && \
./*.AppImage --appimage-extract && \
rm -f ./*.AppImage
# Setup AppImage
ENV OWD=/data
ENV APPDIR=/app/squashfs-root
2021-06-21 17:26:55 +00:00
# Setup Working Directory
RUN mkdir /data
WORKDIR /data
# Setup Entrypoint
ENTRYPOINT ["/usr/bin/tini", "--"]
2022-03-09 23:47:31 +00:00
CMD ["/app/squashfs-root/AppRun"]