From aae589e625e4886472ac42a03f1053e235a9382d Mon Sep 17 00:00:00 2001 From: Manoj Dekhane <167295342+ManojDekhane@users.noreply.github.com> Date: Wed, 12 Feb 2025 13:06:59 +0530 Subject: [PATCH] Update Dockerfile --- Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 59960dc..56508bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM centos:7 +FROM nginx:latest -RUN yum install java-11-openjdk -y -RUN yum install net-tools -y -ADD https://dlcdn.apache.org/tomcat/tomcat-10/v10.1.9/bin/apache-tomcat-10.1.9.tar.gz /tmp -WORKDIR /tmp -RUN tar -xvzf apache-tomcat-10.1.9.tar.gz -COPY project.war apache-tomcat-10.1.9/webapps/ -EXPOSE 8080/tcp -ENTRYPOINT ["apache-tomcat-10.1.9/bin/catalina.sh","run"] +# Copy website files (replace 'index.html' with actual files if needed) +COPY index.html /usr/share/nginx/html/ + +# Expose port 80 +EXPOSE 80 + +# Start Nginx +CMD ["nginx", "-g", "daemon off;"]