1
0
Fork 0
This commit is contained in:
Vili Sinervä 2023-03-17 12:47:10 +02:00
parent e98d78b444
commit 369e2785c8
3 changed files with 10 additions and 0 deletions

View 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"]

View file

@ -1,2 +1,4 @@
I used the spring-example-project from the material
Before: 435MB
After: 213MB