Dockerfile: Add iproute2 package to runtime images; startapp.sh: Fix exec command syntax for running Java application

This commit is contained in:
eyedeekay
2026-07-09 19:00:05 -04:00
parent 68661b151c
commit ab50a2f2da
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -19,15 +19,15 @@ RUN apk add --no-cache gettext tar bzip2 curl openjdk21 \
# --- Runtime stages per architecture ---
FROM debian:bookworm-slim AS runtime-amd64
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-17-jre-headless fonts-dejavu \
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-17-jre-headless fonts-dejavu iproute2 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
FROM debian:bookworm-slim AS runtime-arm64
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-17-jre-headless fonts-dejavu \
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-17-jre-headless fonts-dejavu iproute2\
&& apt-get clean && rm -rf /var/lib/apt/lists/*
FROM debian:bookworm-slim AS runtime-arm
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-17-jre-headless fonts-dejavu \
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-17-jre-headless fonts-dejavu iproute2 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Select runtime based on target architecture
+1 -1
View File
@@ -79,4 +79,4 @@ mkdir -p "$HOME/.i2p" && chown -R i2p:i2p "$HOME/.i2p"
# Execute the Java application with the constructed classpath and options
# The `exec` command replaces the shell with the Java process, ensuring that it receives signals directly and can shut down gracefully.
exec -runuser i2p "java -cp "${CLASSPATH}" ${JAVAOPTS} ${JAVA17OPTS} net.i2p.router.RouterLaunch"
exec runuser -u i2p -- java -cp "${CLASSPATH}" ${JAVAOPTS} ${JAVA17OPTS} net.i2p.router.RouterLaunch