From 00224b249d7a475080f8309359f0ac575361bd3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=BE=E9=BD=90=E5=9B=A2=E9=98=9F?= Date: Wed, 13 Oct 2021 11:42:37 +0800 Subject: [PATCH] Add CONTRIBUTING --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..39c94e0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +# This file is a template, and might need editing before it works on your project. +FROM maven:3.5-jdk-11 as BUILD + +COPY . /usr/src/app +RUN mvn --batch-mode -f /usr/src/app/pom.xml clean package + +FROM openjdk:11-jdk +ENV PORT 4567 +EXPOSE 4567 +COPY --from=BUILD /usr/src/app/target /opt/target +WORKDIR /opt/target + +CMD ["/bin/bash", "-c", "find -type f -name '*-with-dependencies.jar' | xargs java -jar"] -- GitLab