Update
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m12s

This commit is contained in:
2026-03-06 16:24:29 +01:00
parent 6aba1ac9ba
commit 15bceea62f
2 changed files with 40 additions and 7 deletions

View File

@@ -1,10 +1,11 @@
FROM debian:bullseye
FROM alpine:3.19
WORKDIR /server/
WORKDIR /server
COPY . .
COPY server.properties .
COPY --chmod=755 entrypoint.sh .
RUN apt update && apt install -y wget openjdk-17-jre
RUN apk add --no-cache openjdk17-jre wget vim
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
@@ -13,8 +14,6 @@ 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"]
ENTRYPOINT ["/server/entrypoint.sh"]