2021-09-12 03:18:12 +00:00
|
|
|
FROM debian:bullseye-slim
|
2021-06-21 17:26:55 +00:00
|
|
|
|
|
|
|
# Copy DEB
|
2021-12-01 02:40:02 +00:00
|
|
|
ADD ./out/minecraft-pi-reborn-legacy-server_*_amd64.deb /root
|
2021-06-21 17:26:55 +00:00
|
|
|
|
|
|
|
# Install
|
|
|
|
RUN \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y tini && \
|
|
|
|
(dpkg -i /root/*.deb || :) && \
|
|
|
|
apt-get --fix-broken install -y && \
|
|
|
|
rm -f /root/*.deb && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Setup Working Directory
|
|
|
|
RUN mkdir /data
|
|
|
|
WORKDIR /data
|
|
|
|
|
|
|
|
# Setup Entrypoint
|
|
|
|
ENTRYPOINT ["/usr/bin/tini", "--"]
|
2021-12-01 02:40:02 +00:00
|
|
|
CMD ["minecraft-pi-reborn-legacy-server"]
|