17 lines
617 B
Docker
17 lines
617 B
Docker
FROM tomcat:9.0.48-jdk8-openjdk-buster
|
|
ARG nexuspath
|
|
ARG filename
|
|
ARG version
|
|
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 startContainer.sh /startContainer.sh
|
|
RUN chmod +x /startContainer.sh
|
|
ENTRYPOINT ["/startContainer.sh"]
|
|
CMD ["catalina.sh","run"] |