From 223f0405f77ee9d8a6715205e8ee9441572b940e Mon Sep 17 00:00:00 2001 From: greekgeekAW Date: Tue, 1 Oct 2024 17:03:13 +0530 Subject: [PATCH] Create Dockerfile --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..bbf54b8e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +# Use an official Tomcat image as a base +FROM tomcat:9.0 + +# Copy your WAR file to the Tomcat webapps directory +COPY path/to/your-app.war /usr/local/tomcat/webapps/ + +# Expose the default Tomcat port +EXPOSE 8080 + +# Start Tomcat +CMD ["catalina.sh", "run"]