18 lines
582 B
Docker
18 lines
582 B
Docker
# build runtime image
|
|
FROM alpine:3.17.3
|
|
RUN apk update \
|
|
&& apk add \
|
|
apache2 \
|
|
apache2-proxy \
|
|
openjdk8-jre-base
|
|
RUN mkdir /opt/tomcat \
|
|
&& wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.75/bin/apache-tomcat-9.0.75.tar.gz \
|
|
&& tar xvzf apache-tomcat-9.0.75.tar.gz --strip-components 1 --directory /opt/tomcat
|
|
COPY re3gistry/dist /opt/re3gistry
|
|
COPY start.sh /opt/re3gistry/
|
|
COPY httpd-vhosts.conf /etc/apache2/conf.d/
|
|
COPY httpd.conf /etc/apache2/
|
|
WORKDIR /opt/re3gistry
|
|
RUN chmod +x start.sh
|
|
ENTRYPOINT [ "/opt/re3gistry/start.sh" ]
|