Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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;"]