diff --git a/jitsi_admin_application_dockerfile.txt b/jitsi_admin_application_dockerfile.txt index 47a89ac..37853bb 100644 --- a/jitsi_admin_application_dockerfile.txt +++ b/jitsi_admin_application_dockerfile.txt @@ -49,10 +49,10 @@ RUN echo "# Docker Cron Jobs" > /etc/crontabs/nobody \ && chmod +x /etc/crontabs/nobody RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/02-theme.sh \ - && echo "if [ -d "${WEBDIR}/data/theme" ]" >> /docker-entrypoint-init.d/02-theme.sh \ + && echo "if [ -d "/var/www/html/data/theme" ]" >> /docker-entrypoint-init.d/02-theme.sh \ && echo "then" >> /docker-entrypoint-init.d/02-theme.sh \ - && echo " cp ${WEBDIR}/data/theme/theme/*.json.signed* ${WEBSIR}/theme/" >> /docker-entrypoint-init.d/02-theme.sh \ - && echo " cp -r ${WEBDIR}/data/theme/public/* ${WEBSIR}/public/" >> /docker-entrypoint-init.d/02-theme.sh \ + && echo " cp /var/www/html/data/theme/theme/*.json.signed* /var/www/html/theme/" >> /docker-entrypoint-init.d/02-theme.sh \ + && echo " cp -r /var/www/html/data/theme/public/* /var/www/html/public/" >> /docker-entrypoint-init.d/02-theme.sh \ && echo "fi" >> /docker-entrypoint-init.d/02-theme.sh \ && chmod +x /docker-entrypoint-init.d/02-theme.sh @@ -64,14 +64,16 @@ RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/03-symfony.sh \ RUN wget https://github.com/H2-invent/jitsi-admin/releases/download/${VERSION}/application.zip -O artifact.zip \ && unzip artifact.zip -d ${WEBDIR} \ - && chown -R nobody ${WEBDIR}/public \ - && chown -R nobody ${WEBDIR}/var \ - && chmod -R 700 ${WEBDIR}/public \ - && chmod -R 700 ${WEBDIR}/var + && chown -R nobody public \ + && chown -R nobody theme \ + && chown -R nobody var \ + && chmod -R 700 public \ + && chmod -R 700 theme \ + && chmod -R 700 var RUN apk del unzip \ && rm artifact.zip \ - && rm -r ${WEBDIR}/var/cache \ + && rm -r var/cache \ && rm -rf /var/cache/apk/* USER nobody