FROM tomcat:9-jdk17

RUN rm -rf /usr/local/tomcat/webapps/*
COPY build/2.9.2/BudgetMaster-v2.9.2.war $CATALINA_HOME/webapps/ROOT.war
COPY src/main/resources/config/templates/settings-docker.properties /root/.Deadlocker/BudgetMaster/settings.properties

EXPOSE 8080