Add the Dockerfile and Makefile to run the server.
This commit is contained in:
+14
@@ -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"]
|
||||||
|
|
||||||
Reference in New Issue
Block a user