Skip to content

Commit 2b059ed

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents da11d58 + 0e503e5 commit 2b059ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

DockerFile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ FROM eclipse-temurin:17
33
ARG MINECRAFT_VERSION=1.20.4
44

55
ENV MINECRAFT_VERSION=${MINECRAFT_VERSION}
6+
ENV DEBIAN_FRONTEND=noninteractive
67

78
WORKDIR /app
89

910
# Fetch the latest release information and download the second JAR file from the assets
1011
RUN apt-get update && apt-get install -y curl jq \
1112
&& filename=$(curl -s https://api.github.com/repos/kettingpowered/kettinglauncher/releases/latest | jq -r '.assets[] | select(.name | contains("sources.jar") | not) | .browser_download_url') \
1213
&& echo "Downloading ${filename}" \
13-
&& curl -L ${filename} -o launcher.jar
14+
&& curl -L ${filename} -o launcher.jar \
15+
&& rm -rf /var/lib/apt/lists/*
1416

1517
ENTRYPOINT ["java", "-jar", "/app/launcher.jar"]

0 commit comments

Comments
 (0)