FROM tomcat:8.5-jdk8-temurin
RUN rm -rf /usr/local/tomcat/webapps/* \
 && mkdir -p /app/logs \
 && apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
COPY backend/xiaoqu-mall/target/ROOT.war /usr/local/tomcat/webapps/
EXPOSE 8080
