-
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from PBH-BTN/master
3.4.0
- Loading branch information
Showing
20 changed files
with
386 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
FROM eclipse-temurin:17.0.10_7-jre | ||
|
||
LABEL MAINTAINER="https://github.com/PBH-BTN/PeerBanHelper" | ||
FROM --platform=$BUILDPLATFORM maven:3.9.6-eclipse-temurin-17 as build | ||
|
||
ENV TZ=UTC PUID=0 PGID=0 | ||
|
||
RUN set -ex && \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt update -y && \ | ||
apt install -y gosu dumb-init && \ | ||
apt autoremove -y && \ | ||
apt clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
ADD . /build | ||
WORKDIR /build | ||
RUN sh setup-webui.sh && mvn -B clean package --file pom.xml | ||
|
||
FROM eclipse-temurin:17.0.10_7-jre | ||
LABEL MAINTAINER="https://github.com/PBH-BTN/PeerBanHelper" | ||
USER 0 | ||
ENV TZ=UTC | ||
WORKDIR /app | ||
|
||
COPY --chmod=755 ./docker-entrypoint.sh /app/ | ||
|
||
COPY ./target/PeerBanHelper.jar /app/ | ||
|
||
ENTRYPOINT [ "/app/docker-entrypoint.sh" ] | ||
VOLUME /tmp | ||
COPY --from=build build/target/PeerBanHelper.jar /app/PeerBanHelper.jar | ||
ENV PATH "${JAVA_HOME}/bin:${PATH}" | ||
ENTRYPOINT ["java","-Xmx256M","-XX:+UseSerialGC","-jar","PeerBanHelper.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.