-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52343ca
commit 38d8ac6
Showing
4 changed files
with
13 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
node_modules/ | ||
.helm/ | ||
.github/ | ||
build/ | ||
.idea/ | ||
.gradle/ | ||
tmp/ | ||
tmp/ |
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,12 +1,7 @@ | ||
FROM gradle:8.8-jdk21-alpine as build | ||
COPY . . | ||
ARG RELEASE_VERSION=${RELEASE_VERSION:-0.0.0} | ||
RUN gradle -Pversion=docker -i -s --no-daemon bootJar | ||
|
||
FROM openjdk:21-alpine as production | ||
COPY --from=build /home/gradle/build/libs/allure-server-docker.jar /allure-server-docker.jar | ||
FROM openjdk:21-slim | ||
COPY build/libs/allure-server.jar /allure-server-docker.jar | ||
# Set port | ||
EXPOSE ${PORT:-8080} | ||
# Run application | ||
ENV JAVA_OPTS="-Xms256m -Xmx2048m" | ||
ENTRYPOINT ["java", "-Dloader.path=/ext", "-cp", "allure-server-docker.jar", "-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE:default}", "org.springframework.boot.loader.PropertiesLauncher"] | ||
ENTRYPOINT ["java", "-Dloader.path=/ext", "-jar", "allure-server-docker.jar", "-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE:default}"] |
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