-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE-58 // Use one Dockerfile instead of two for maven & gradle (#59)
* FEATURE-58 1. Add one Dockerfile for both maven & gradle 2. Remove specific files * Update README * Remove version from psi-todo for ci build * Update CI build 1. Remove Dockerfile.mvn & Dockerfile.gradle from ci build 2. Use one Dockerfile * Update build.yml use ci environment Co-authored-by: Raghav2211 <[email protected]>
- Loading branch information
1 parent
10e3ae5
commit 94751cf
Showing
6 changed files
with
19 additions
and
15 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,11 @@ | ||
FROM openjdk:11-jre-slim | ||
ARG USER=psi | ||
ARG GROUP=psi | ||
ARG UID=1000 | ||
ARG GID=1000 | ||
ARG JAR_FILE=target/*.jar | ||
RUN echo $JAR_FILE | ||
RUN groupadd -g ${GID} ${GROUP} && useradd -u ${UID} -g ${GROUP} ${USER} | ||
USER ${USER}:${GROUP} | ||
COPY ${JAR_FILE} app.jar | ||
ENTRYPOINT ["java","-server", "-Dfile.encoding=utf-8", "-XX:+ExitOnOutOfMemoryError", "-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=UTC","-jar","/app.jar"] |
This file was deleted.
Oops, something went wrong.
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