Skip to content

Commit 3fe362e

Browse files
committed
Docker: Create the cache dir if it does not exist
1 parent a02c23a commit 3fe362e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/Dockerfile.prod

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ COPY config/openconext/samlstepupproviders_parameters.yaml.dist config/openconex
1212
# Add the config files for Apache2
1313
RUN rm -rf /etc/apache2/sites-enabled/*
1414
COPY ./docker/conf/apache2.conf /etc/apache2/sites-enabled/apache2.conf
15-
RUN rm -rf /var/www/html/var/cache/prod && chown -R www-data /var/www/html/var
15+
RUN rm -rf /var/www/html/var/cache/prod && \
16+
mkdir -p /var/www/html/var/cache/ && \
17+
chown -R www-data /var/www/html/var
1618

1719
EXPOSE 80

0 commit comments

Comments
 (0)