-
Notifications
You must be signed in to change notification settings - Fork 0
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 #39 from pagopa/SLS-14
SLS-14 - Created Spring Dockerfile and publishing to Github Docker Registry
- Loading branch information
Showing
6 changed files
with
60 additions
and
8 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM eclipse-temurin:11-jdk-alpine as build | ||
|
||
WORKDIR /build | ||
COPY ./samples/spring . | ||
|
||
FROM eclipse-temurin:11-jdk-alpine as runtime | ||
|
||
WORKDIR /app | ||
COPY --from=build /build/build/libs/*.jar /app/app.jar | ||
|
||
RUN addgroup -S appuser && adduser -S appuser -G appuser | ||
USER appuser | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT [ "java","-jar","/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
2 changes: 1 addition & 1 deletion
2
.../spring/src/test/java/it/pagopa/tech/lollipop/consumer/sample/SampleApplicationTests.java
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