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;"]