Some fixes

This commit is contained in:
Willem Dantuma
2023-08-30 11:20:39 +02:00
parent 04461a34ff
commit 063ae588df
4 changed files with 21 additions and 13 deletions

View File

@@ -9,15 +9,9 @@ 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 init.properties /opt/re3gistry/
COPY start.sh /opt/re3gistry/
COPY httpd-vhosts.conf /etc/apache2/conf.d/
COPY httpd.conf /etc/apache2/
WORKDIR /opt/re3gistry
RUN sh ./init-config.sh \
&& cp -R app/* /opt/tomcat/webapps/ \
&& cp -R webapp/public_html/* /var/www/localhost/htdocs/ \
&& chmod +x start.sh \
&& touch /opt/tomcat/webapps/re3gistry2/WEB-INF/classes/configurations_files/system.installed
RUN chmod +x start.sh
ENTRYPOINT [ "/opt/re3gistry/start.sh" ]