Switch to a more standard base image, to fix a crash
This commit is contained in:
parent
9f8fd25bf2
commit
54888cd27f
2 changed files with 11 additions and 8 deletions
17
Dockerfile
17
Dockerfile
|
@ -1,8 +1,10 @@
|
|||
########################################################
|
||||
############## We use a java base image ################
|
||||
########################################################
|
||||
FROM azul/zulu-openjdk-alpine:21-jre AS build
|
||||
RUN apk add curl jq bash
|
||||
FROM debian:sid AS build
|
||||
RUN ls -lah /etc/apt/sources.list.d/
|
||||
RUN sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list.d/debian.sources
|
||||
RUN apt update && apt install -y curl jq bash openjdk-21-jdk openjdk-21-jre
|
||||
|
||||
LABEL Marc Tönsing <marc@marc.tv>
|
||||
|
||||
|
@ -24,8 +26,9 @@ RUN java -Dpaperclip.patchonly=true -jar /opt/minecraft/paperclip.jar; exit 0
|
|||
########################################################
|
||||
############## Running environment #####################
|
||||
########################################################
|
||||
FROM azul/zulu-openjdk-alpine:21-jre AS runtime
|
||||
RUN apk add curl jq bash
|
||||
FROM debian:sid AS runtime
|
||||
RUN sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list.d/debian.sources
|
||||
RUN apt update && apt install -y curl jq bash openjdk-21-jre openjdk-21-jdk sudo
|
||||
|
||||
# Working directory
|
||||
WORKDIR /data
|
||||
|
@ -60,9 +63,9 @@ COPY /docker-entrypoint.sh /opt/minecraft
|
|||
RUN chmod +x /opt/minecraft/docker-entrypoint.sh
|
||||
|
||||
# Install gosu
|
||||
RUN set -eux; \
|
||||
apk update; \
|
||||
apk add --no-cache su-exec;
|
||||
#RUN set -eux; \
|
||||
# apk update; \
|
||||
# apk add --no-cache su-exec;
|
||||
|
||||
# Entrypoint
|
||||
ENTRYPOINT ["/opt/minecraft/docker-entrypoint.sh"]
|
||||
|
|
|
@ -20,4 +20,4 @@ if ! id "$DOCKER_USER" >/dev/null 2>&1; then
|
|||
fi
|
||||
|
||||
export HOME=/home/$DOCKER_USER
|
||||
exec su-exec $DOCKER_USER java -jar -Xms$MEMORYSIZE -Xmx$MEMORYSIZE $JAVAFLAGS /opt/minecraft/paperspigot.jar --nojline nogui
|
||||
exec sudo -u $DOCKER_USER java -jar -Xms$MEMORYSIZE -Xmx$MEMORYSIZE $JAVAFLAGS /opt/minecraft/paperspigot.jar --nojline nogui
|
||||
|
|
Loading…
Add table
Reference in a new issue