Skip to content

Commit 87e13f4

Browse files
Angelo Manganielloamangafv
authored andcommitted
adding Dockerfile
1 parent df2cd3f commit 87e13f4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM frolvlad/alpine-java:jdk8-slim AS build
2+
WORKDIR /app
3+
4+
## copy maven project
5+
COPY .mvn/wrapper mvnw pom.xml src/*.* ./springbootapp/
6+
WORKDIR /app/springbootapp/
7+
RUN mvn clean package
8+
9+
## Runtime console app
10+
FROM frolvlad/alpine-java:jre8-slim AS runtime
11+
12+
WORKDIR /app
13+
COPY --from=build /app/springbootapp/target ./
14+
ENTRYPOINT ["java", "-jar", "*.jar"]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Moreover, to use the automatic Travis deploy integration, you have only to repla
2222

2323
## NEWS
2424

25+
* Adding Dockerfile to build and run jar without frontend (as microservice)
26+
2527
* Fixed cordova build error specifying ndk version in .travis file. A migration of nodejs cordova plugin to cordova 8 is in testing [commit](https://github.com/amanganiello90/java-angular-web-app/commit/d5c8bc6290ae0e6151425028622fb7dc1fe17391)
2628

2729
* Maybe it's possible to remove express server and call directly in electron the api with **IPC** but it's better mantains this. Read [here](https://malcoded.com/posts/angular-desktop-electron) and [ngx-electron](https://github.com/ThorstenHans/ngx-electron)

0 commit comments

Comments
 (0)