diff --git a/docker/Dockerfile.prod b/docker/Dockerfile.prod index 577015438..f2aa4439b 100644 --- a/docker/Dockerfile.prod +++ b/docker/Dockerfile.prod @@ -12,6 +12,8 @@ COPY config/openconext/samlstepupproviders_parameters.yaml.dist config/openconex # Add the config files for Apache2 RUN rm -rf /etc/apache2/sites-enabled/* COPY ./docker/conf/apache2.conf /etc/apache2/sites-enabled/apache2.conf -RUN rm -rf /var/www/html/var/cache/prod && chown -R www-data /var/www/html/var +RUN rm -rf /var/www/html/var/cache/prod && \ + mkdir -p /var/www/html/var/cache/ && \ + chown -R www-data /var/www/html/var EXPOSE 80