From ea21cd5d2842ff31f0558ec281fe451949193e41 Mon Sep 17 00:00:00 2001 From: Benjamin Cavy Date: Mon, 15 Jul 2024 16:21:50 +0200 Subject: [PATCH] chore: Dockerfile --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..bbbde4c05 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM eclipse-temurin:21 +RUN mkdir /app +RUN groupadd -g 10001 javauser && useradd -u 10000 -g javauser javauser +ENV IZANAMI_CONTAINERIZED=true +COPY ./target/scala-2.13/izanami.jar /app/izanami.jar +WORKDIR /app +RUN chown -R javauser:javauser /app +USER javauser +CMD "java" "-jar" "izanami.jar" \ No newline at end of file