Files
bta-server/Dockerfile
ciomeczek 4df3ee891e
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m5s
Initial commit
2025-08-02 20:07:39 +02:00

21 lines
390 B
Docker

FROM debian:bullseye
WORKDIR /server/
COPY . .
RUN apt update && apt install -y wget openjdk-17-jre
RUN wget -O server.jar https://github.com/Better-than-Adventure/bta-download-repo/releases/download/v7.3_04/bta.v7.3_04.server.jar
VOLUME ["/server/world"]
ENV JAVA_MIN_MEM=1G
ENV JAVA_MAX_MEM=1G
RUN chmod +x /server/entrypoint.sh
EXPOSE 25565
ENTRYPOINT ["/server/entrypoint.sh"]