-
Notifications
You must be signed in to change notification settings - Fork 5
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 #271 from BingChunMoLi/develop
v3.15.7
- Loading branch information
Showing
10 changed files
with
21 additions
and
36 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,5 @@ | ||
FROM maven:3.9.9-eclipse-temurin-17-alpine as builder | ||
WORKDIR /workspace/app | ||
COPY mvnw . | ||
COPY .mvn .mvn | ||
COPY pom.xml . | ||
COPY src src | ||
COPY lombok.config . | ||
|
@@ -10,11 +8,9 @@ RUN java -Djarmode=tools -jar target/moliapi.jar extract --layers --destination | |
|
||
FROM eclipse-temurin:17-jdk-alpine | ||
MAINTAINER BingChunMoLi <[email protected]> | ||
VOLUME /soft/config | ||
VOLUME /var/log/moliapi | ||
EXPOSE 8090 | ||
RUN adduser --disabled-password -h /soft/config/ -D -g api api | ||
USER api:api | ||
VOLUME /soft/.api | ||
WORKDIR /soft | ||
COPY --from=builder /workspace/app/extracted/dependencies/ ./ | ||
COPY --from=builder /workspace/app/extracted/spring-boot-loader/ ./ | ||
COPY --from=builder /workspace/app/extracted/snapshot-dependencies/ ./ | ||
|
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,5 +1,5 @@ | ||
FROM eclipse-temurin:17-alpine | ||
MAINTAINER BingChunMoLi <[email protected]> | ||
MAINTAINER BingChunMoLi <[email protected]> | ||
RUN mkdir -p /var/log/moliapi | ||
RUN chmod -R a+w /var/log/moliapi | ||
RUN addgroup api && adduser api -D -S -s /bin/bash -G api | ||
|
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