Skip to content

Commit

Permalink
issue-188: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Lagrimas committed Mar 3, 2023
1 parent 6340a31 commit f296fba
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ RUN groupadd -r ontostring && useradd -r --create-home -g ontostring ontostring
RUN if [ ! -d /var/log/ontotools/ ];then mkdir /var/log/ontotools/;fi
RUN chown -R ontostring:ontostring /var/log/ontotools

RUN mvn clean package spring-boot:repackage -DskipTests=true

# Move project artifact
COPY target/ontostring-*.war /home/ontostring/
USER ontostring

# Launch application server
ENTRYPOINT exec $JAVA_HOME/bin/java $XMX $XMS -jar -Dspring.profiles.active=$ENVIRONMENT -Dhttp.proxyHost=hh-wwwcache.ebi.ac.uk -Dhttp.proxyPort=3128 -Dhttps.proxyHost=hh-wwwcache.ebi.ac.uk -Dhttps.proxyPort=3128 -Dhttp.proxySet=true -Dhttps.proxySet=true /home/ontostring/ontostring-*.war
COPY . /home/ontostring/
RUN cd /home/ontostring/ && mvn clean package spring-boot:repackage -DskipTests=true

# Launch application server
ENTRYPOINT exec $JAVA_HOME/bin/java $XMX $XMS -jar -Dspring.profiles.active=$ENVIRONMENT -Dhttp.proxyHost=hh-wwwcache.ebi.ac.uk -Dhttp.proxyPort=3128 -Dhttps.proxyHost=hh-wwwcache.ebi.ac.uk -Dhttps.proxyPort=3128 -Dhttp.proxySet=true -Dhttps.proxySet=true /home/ontostring/target/ontostring-*.war

0 comments on commit f296fba

Please sign in to comment.