Skip to content

Commit f6246c5

Browse files
authored
Merge pull request #6 from corazawaf/remove-cache
fix: remove cache while getting crs
2 parents 5ad5ad3 + 5a5401c commit f6246c5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

caddy/Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ FROM caddy:"${CADDY_VERSION}-builder" AS builder-crs
1616
ARG CRS_VERSION="n/a"
1717

1818
# Get OWASP ModSecurity Core Rule Set and main configuration file
19-
RUN --mount=type=cache,target=/var/tmp,id=crs \
20-
set -eux; \
19+
# Ideally we can get back this cache: --mount=type=cache,target=/var/tmp,id=crs \
20+
# But it seems that the cache is not working as expected on multi arch builds
21+
RUN set -eux; \
2122
# Only retrieve and extract rule set if not existing due to cache layer
2223
if [ ! -d "/var/tmp/owasp-crs" ]; \
2324
then \

0 commit comments

Comments
 (0)