forked from bwerquin/Knowledge-Back-Office
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade to spring boot 3 (#12)
* feat: upgrade to spring boot 3 - upgrade other dependencies * remove import --------- Co-authored-by: Dylan Decrulle <[email protected]>
- Loading branch information
Showing
5 changed files
with
29 additions
and
34 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,8 +1,13 @@ | ||
FROM eclipse-temurin:11-jre-focal | ||
COPY ./target/*.jar /usr/local/app.jar | ||
FROM eclipse-temurin:21-jre-alpine | ||
|
||
EXPOSE 8080 | ||
RUN adduser knowledge-api | ||
USER knowledge-api | ||
WORKDIR /opt/app/ | ||
COPY ./target/*.jar /opt/app/app.jar | ||
|
||
CMD ["java","-jar","/usr/local/app.jar"] | ||
# Setup a non-root user context (security) | ||
RUN addgroup -g 1000 knowledge-api-group | ||
RUN adduser -D -s / -u 1000 knowledge-api-user -G knowledge-api-group | ||
RUN chown -R 1000:1000 /opt/app | ||
|
||
USER 1000 | ||
|
||
ENTRYPOINT ["java", "-jar", "/opt/app/app.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 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