diff --git a/Dockerfile b/Dockerfile index 1cd92c9..4c04c07 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,11 @@ -FROM openjdk +FROM jboss/wildfly:20.0.0.Final -RUN mkdir /opt/tomcat -WORKDIR /opt/tomcat -#RUN curl -v https://dlcdn.apache.org/ -COPY apache-tomcat-9.0.64.tar.gz ./apache-tomcat-9.0.64.tar.gz -#RUN curl -O https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.64/bin/apache-tomcat-9.0.64.tar.gz -RUN tar xvf apache-tomcat-9.0.64.tar.gz -RUN cp -r apache-tomcat-9.0.64/* /opt/tomcat/. -COPY my-app.war /opt/tomcat/webapps/ +COPY ./target/my-app.war /opt/jboss/wildfly/standalone/deployments/ + + +EXPOSE 8088 + + +CMD ["/opt/jboss/wildfly/bin/standalone.sh", "-b", "0.0.0.0"] -EXPOSE 8080 -ENTRYPOINT ["/opt/tomcat/bin/catalina.sh","run"] diff --git a/report-task.txt b/report-task.txt index 4ba6a0c..bd4846b 100644 --- a/report-task.txt +++ b/report-task.txt @@ -1 +1,2 @@ # this is text file +# Hello