Add the Dockerfile and Makefile to run the server.

This commit is contained in:
2023-11-26 14:09:51 +02:00
parent 4dc120bce8
commit 22e1506024
2 changed files with 27 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
FROM tomcat:9.0-jdk17-openjdk-slim
WORKDIR /usr/local/tomcat/webapps
# Remove the default Tomcat apps
RUN rm -rf ROOT* docs examples manager host-manager
COPY target/SpringRestExample.war /usr/local/tomcat/webapps/ROOT.war
EXPOSE 8080
# Start Tomcat
CMD ["catalina.sh", "run"]