From 0025f23b1271cfcdc9bd298dbf404638403124e5 Mon Sep 17 00:00:00 2001 From: Flook Peter Date: Fri, 14 Jun 2024 09:04:51 +0800 Subject: [PATCH] Add in WORKDIR to Dockerfile --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 55284f66a..f3772cecb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ FROM openjdk:24-slim -COPY server/target/unitycatalog-server*.jar /opt/app/unitycatalog-server.jar -COPY examples/cli/target/unitycatalog-cli*.jar /opt/app/unitycatalog-cli.jar -COPY etc /opt/app/etc +WORKDIR /opt/app -ENTRYPOINT ["java", "-cp", "/opt/app/unitycatalog-server.jar", "io.unitycatalog.server.UnityCatalogServer"] +COPY server/target/unitycatalog-server*.jar unitycatalog-server.jar +COPY examples/cli/target/unitycatalog-cli*.jar unitycatalog-cli.jar +COPY etc . + +ENTRYPOINT ["java", "-cp", "unitycatalog-server.jar", "io.unitycatalog.server.UnityCatalogServer"]