diff --git a/vulnz/Dockerfile b/vulnz/Dockerfile index 11740c64..386672a3 100644 --- a/vulnz/Dockerfile +++ b/vulnz/Dockerfile @@ -38,6 +38,13 @@ COPY ["/src/docker/crontab/mirror", "/etc/crontabs/mirror"] COPY ["/src/docker/conf/mirror.conf", "/usr/local/apache2/conf"] COPY ["/build/libs/vulnz-$BUILD_VERSION.jar", "/usr/local/bin/vulnz"] +RUN chmod +x /mirror.sh && \ + chown mirror:mirror /etc/supervisor/conf.d/supervisord.conf && \ + chown mirror:mirror /mirror.sh && \ + chown mirror:mirror /etc/crontabs/mirror && \ + chown -R mirror:mirror /usr/local/apache2 && \ + chown mirror:mirror /usr/local/bin/vulnz + VOLUME /usr/local/apache2/htdocs EXPOSE 80/tcp