P3Ex10
This commit is contained in:
parent
e98d78b444
commit
369e2785c8
3 changed files with 10 additions and 0 deletions
8
Part3/Exercise10/Dockerfile_old
Normal file
8
Part3/Exercise10/Dockerfile_old
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
FROM openjdk:8-oracle
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
COPY pom.xml ./
|
||||||
|
COPY . .
|
||||||
|
RUN ./mvnw package
|
||||||
|
CMD ["java", "-jar", "./target/docker-example-1.1.3.jar"]
|
|
@ -1,2 +1,4 @@
|
||||||
|
I used the spring-example-project from the material
|
||||||
|
|
||||||
Before: 435MB
|
Before: 435MB
|
||||||
After: 213MB
|
After: 213MB
|
||||||
|
|
Reference in a new issue