-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#47: Dokumentation zu Build und Dockerfile ergänzt
- Loading branch information
Oli B
committed
Jun 5, 2020
1 parent
786dc58
commit e5eacdc
Showing
6 changed files
with
77 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Packaging the gdv-xport-service.war | ||
FROM maven:3.6.3-openjdk-8 AS build-env | ||
COPY . . | ||
RUN mvn package | ||
RUN mvn -DskipTests package | ||
|
||
# Starting the service | ||
FROM openjdk:8-alpine | ||
WORKDIR /usr/src/myapp | ||
COPY --from=build-env /service/target/gdv-xport-service-4.0.4.war /usr/src/myapp/app.war | ||
COPY --from=build-env /service/target/gdv-xport-service.war /usr/src/myapp/app.war | ||
EXPOSE 2517 | ||
ENTRYPOINT ["java", "-jar", "app.war"] |
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
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