2023-03-31 14:17:34 +02:00
|
|
|
FROM tomcat:9.0.65-jdk11-openjdk-buster
|
|
|
|
ARG filename=smartgears-distribution-4.0.0-SNAPSHOT
|
|
|
|
ARG version=4.0.0-SNAPSHOT
|
2022-04-20 16:29:44 +02:00
|
|
|
COPY ./target/$filename.tar.gz /smartgears-distro.tar.gz
|
2022-03-04 14:53:17 +01:00
|
|
|
WORKDIR /
|
|
|
|
RUN tar zxvf /smartgears-distro.tar.gz
|
2022-05-23 16:33:08 +02:00
|
|
|
RUN rm /smartgears-distro.tar.gz
|
2022-03-04 14:53:17 +01:00
|
|
|
RUN export CATALINA_HOME=/usr/local/tomcat
|
2022-05-11 18:44:40 +02:00
|
|
|
RUN ln -s /usr/local/tomcat tomcat
|
2022-03-04 14:53:17 +01:00
|
|
|
RUN mv smartgears-distribution-$version smartgears-distribution
|
|
|
|
ENV GHN_HOME=./smartgears-distribution
|
2022-05-23 16:33:08 +02:00
|
|
|
RUN ./smartgears-distribution/install -s tomcat
|
|
|
|
COPY startContainer.sh /startContainer.sh
|
|
|
|
RUN chmod +x /startContainer.sh
|
|
|
|
ENTRYPOINT ["/startContainer.sh"]
|
2024-02-02 12:05:54 +01:00
|
|
|
#CMD ["catalina.sh","run"]
|