diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..45c91e44 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +# You can change this base image to anything else +# But make sure to use the correct version of Java +FROM adoptopenjdk/openjdk11:alpine-jre + +# Simply the artifact path +ARG artifact=target/sample-0.0.1-SNAPSHOT.jar + +WORKDIR /opt/app + +COPY ${artifact} app.jar + +# This should not be changed +ENTRYPOINT ["java","-jar","app.jar"]