Skip to content

Commit

Permalink
as
Browse files Browse the repository at this point in the history
  • Loading branch information
feborghi authored and feborghi committed May 9, 2024
1 parent 85cbcbf commit ef2ed93
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ef2ed93

Please sign in to comment.