File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,15 @@ FROM eclipse-temurin:17
3
3
ARG MINECRAFT_VERSION=1.20.4
4
4
5
5
ENV MINECRAFT_VERSION=${MINECRAFT_VERSION}
6
+ ENV DEBIAN_FRONTEND=noninteractive
6
7
7
8
WORKDIR /app
8
9
9
10
# Fetch the latest release information and download the second JAR file from the assets
10
11
RUN apt-get update && apt-get install -y curl jq \
11
12
&& filename=$(curl -s https://api.github.com/repos/kettingpowered/kettinglauncher/releases/latest | jq -r '.assets[] | select(.name | contains("sources.jar") | not) | .browser_download_url') \
12
13
&& echo "Downloading ${filename}" \
13
- && curl -L ${filename} -o launcher.jar
14
+ && curl -L ${filename} -o launcher.jar \
15
+ && rm -rf /var/lib/apt/lists/*
14
16
15
17
ENTRYPOINT ["java", "-jar", "/app/launcher.jar"]
You can’t perform that action at this time.
0 commit comments