Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
xxSlashxx committed Dec 23, 2024
1 parent 3ebe7d8 commit db309e5
Show file tree
Hide file tree
Showing 20 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ ENV HOME=/usr/app
RUN mkdir -p $HOME
WORKDIR $HOME
ADD . $HOME
RUN --mount=type=cache,target=/root/.m2 $HOME/mvnw -f $HOME/pom.xml clean package
RUN --mount=type=cache,target=/root/.m2 $HOME/products-service/mvnw -f $HOME/products-service/pom.xml clean package

FROM eclipse-temurin:21-jre
ARG JAR_FILE=/usr/app/target/*.jar
ARG JAR_FILE=/usr/app/products-service/target/*.jar
COPY --from=builder $JAR_FILE /app/runner.jar
ENTRYPOINT java -jar /app/runner.jar
2 changes: 1 addition & 1 deletion .gitignore → products-service/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
target/
../target/
!**/src/main/**/target/
!**/src/test/**/target/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit db309e5

Please sign in to comment.