First thanks for this example.
I was just wondering whether you see a possibility to specify an existing local Maven repository which could be used for the build. This way not all artifacts have to be downloaded every time during a build (considering one would have a application with more dependencies).
Thanks,
Thorsten
and got:
Sending build context to Docker daemon 164.9 kB
Step 1/6 : FROM maven:3.5-jdk-8 as BUILD
Error parsing reference: "maven:3.5-jdk-8 as BUILD" is not a valid repository/tag: invalid reference format