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
|
2021-12-01 02:40:02 +00:00
|
|
|
ADD ./out/minecraft-pi-reborn-legacy-server-*-amd64.AppImage /app
|
2022-03-09 23:47:31 +00:00
|
|
|
|
|
|
|
# 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"]
|