We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a752bf + b47de61 commit a3ad3dbCopy full SHA for a3ad3db
docker/Dockerfile.prod
@@ -11,7 +11,12 @@ COPY config/packages/prod/monolog.yaml.docker config/packages/prod/monolog.yaml
11
# Add the config files for Apache2
12
RUN rm -rf /etc/apache2/sites-enabled/*
13
COPY ./docker/conf/middleware-apache2.conf /etc/apache2/sites-enabled/middleware.conf
14
-RUN rm -rf /var/www/html/var/cache/prod && chown -R www-data /var/www/html/var
+
15
+# Recreate the cache directory and set the correct permissions
16
+RUN rm -rf /var/www/html/var/cache/prod && \
17
+ mkdir -p /var/www/html/var/cache/prod && \
18
+ chown -R www-data /var/www/html/var
19
20
EXPOSE 80
21
22
# Set the default workdir
0 commit comments