9 Ekim 2022 Pazar

tomcat Docker

Örnek
Şöyle yaparız
FROM tomcat:8-jre11
LABEL "Project"="Vproject"
LABEL "Author"="Onumaku chibuike"

RUN rm -rf /usr/local/tomcat/webapps/*
COPY target/vprofile-v2.war /usr/local/tomcat/webapps/ROOT.war

EXPOSE 8080
CMD ["catalina.sh", "run"]
WORKDIR /usr/local/tomcat/
VOLUME /usr/local/tomcat/webapps



Hiç yorum yok:

Yorum Gönder