16 lines
661 B
Plaintext
16 lines
661 B
Plaintext
FROM tomcat:10.1.19-jdk11-temurin-jammy
|
|
ARG filename=smartgears-distribution-4.0.0-SNAPSHOT
|
|
ARG version=4.0.0-SNAPSHOT
|
|
COPY ./target/$filename.tar.gz /smartgears-distro.tar.gz
|
|
WORKDIR /
|
|
RUN tar zxvf /smartgears-distro.tar.gz
|
|
RUN rm /smartgears-distro.tar.gz
|
|
RUN export CATALINA_HOME=/usr/local/tomcat
|
|
RUN ln -s /usr/local/tomcat tomcat
|
|
RUN mv smartgears-distribution-$version smartgears-distribution
|
|
ENV GHN_HOME=./smartgears-distribution
|
|
RUN ./smartgears-distribution/install -s tomcat
|
|
COPY exec/startContainer.sh /startContainer.sh
|
|
RUN chmod +x /startContainer.sh
|
|
ENTRYPOINT ["/startContainer.sh"]
|
|
CMD ["catalina.sh","run"] |