diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..80459ab --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +**/target/ +.project +.settings +.classpath +/target/ +.git +.github +Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4f34dbc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM docker.io/library/openjdk:11-bullseye + +EXPOSE 8080 + +RUN apt update \ + && apt install -y maven \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /app + +COPY . . +RUN mvn clean package + +WORKDIR /app/service/target +RUN unzip meecrowave-meecrowave-distribution.zip + +WORKDIR /app/service/target/meecrowave-distribution + +CMD [ "./bin/meecrowave.sh", "run" ]