smartgears-distribution/Dockerfile

16 lines
668 B
Docker
Raw Normal View History

FROM tomcat:9.0.85-jdk11-temurin-jammy
2023-03-31 14:17:34 +02:00
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
RUN rm /smartgears-distro.tar.gz
2022-03-04 14:53:17 +01:00
RUN export CATALINA_HOME=/usr/local/tomcat
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
RUN ./smartgears-distribution/install -s tomcat
COPY tomcat_files/startContainer.sh /startContainer.sh
RUN chmod +x /startContainer.sh
ENTRYPOINT ["/startContainer.sh"]
2024-02-07 15:45:50 +01:00
CMD ["catalina.sh","run"]