From ef2ed93772d5ce0155c109a034ab081a7a821d4c Mon Sep 17 00:00:00 2001 From: feborghi Date: Thu, 9 May 2024 16:12:40 +0200 Subject: [PATCH] as --- docker/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 923b066..2212ab7 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,14 +4,16 @@ FROM tomee:8.0.16-plus ARG VERSION ARG DB_VERSION -COPY ./rest/target/ROOT.war /usr/local/tomee/confighub.war +COPY ./rest/target/ROOT.war /usr/local/tomee/webapps/ROOT.war RUN if [ -z $VERSION ]; then VERSION=$(curl -s https://api.github.com/repos/ConfigHubPub/ConfigHubPlatform/releases/latest | grep tag_name | grep -oe '[\.0-9]*'); fi \ && if [ -z $DB_VERSION ]; then DB_VERSION=$(curl -s https://api.github.com/repos/ConfigHubPub/Database-Manager/releases/latest | grep tag_name | grep -oe '[\.0-9]*'); fi \ && wget -O ConfigHubDBManager.jar -q https://github.com/ConfigHubPub/Database-Manager/releases/download/v${DB_VERSION}/ConfigHubDBManager-${DB_VERSION}.jar -COPY ./docker/layer/init.sh /init.sh -COPY ./docker/config /config +COPY ./docker/layer/init.sh /usr/local/tomee/init.sh +COPY ./docker/config/cert /usr/local/tomee/cert +COPY ./docker/config/lib/* /usr/local/tomee/lib/ +COPY ./docker/config/conf/* /usr/local/tomee/conf/ EXPOSE 80 443