-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: change dockerfile of inventory-service
- Loading branch information
1 parent
60f9ae5
commit 10954d1
Showing
2 changed files
with
4 additions
and
17 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,11 +1,4 @@ | ||
FROM maven:3.8.5-openjdk-17 AS build | ||
COPY . /usr/app | ||
WORKDIR /usr/app | ||
RUN mvn clean package | ||
|
||
FROM openjdk:17 | ||
FROM openjdk:17-jdk AS build | ||
VOLUME /tmp | ||
COPY --from=build /usr/app/target/*.jar inventory-service.jar | ||
COPY target/*.jar app.jar | ||
ENTRYPOINT ["java","-jar","/inventory-service.jar"] | ||
EXPOSE 8083 | ||
|