-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: removed the mvn from the Dockerfile and put it inside the gh wf …
…file
- Loading branch information
1 parent
07b471d
commit 48c9ca2
Showing
3 changed files
with
32 additions
and
23 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 |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
!src | ||
!pom.xml | ||
!mvnw | ||
!.mvn | ||
!.mvn | ||
# ignore target folder but not the jar files in it | ||
!target/*.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
FROM eclipse-temurin:21-jdk as builder | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN ./mvnw clean package | ||
|
||
|
||
FROM eclipse-temurin:21-jre-alpine | ||
|
||
LABEL maintainer="PowerPay Team <[email protected]>" | ||
LABEL application="power-pay-backend" | ||
|
||
ENV APP_VERSION=0.0.1-SNAPSHOT | ||
|
||
COPY --from=builder /app/target/power-pay-backend-${APP_VERSION}.jar /app/app.jar | ||
COPY ./target/power-pay-backend-${APP_VERSION}.jar /app/app.jar | ||
|
||
EXPOSE 8080 | ||
|
||
|