Example uses Tomcat 7.
Adapt to your tomcat directory if using another version.
In Dockerfile:
#start Tomcat and map Port 8080 to Container Port 8080
RUN sed -i 's/port="8080"/port="8080"/' /opt/apache/tomcat/conf/server.xml
URL: http://localhost:8080
Example 8081:
#start Tomcat and map Port 8080 to Container Port 8081
RUN sed -i 's/port="8080"/port="8081"/' /opt/apache/tomcat/conf/server.xml
URL: http://localhost:8081
Keine Kommentare:
Kommentar veröffentlichen