Optimize copy of mmdb files in scheduler Dockerfile

This commit is contained in:
Théophile Diot 2024-03-16 09:02:14 +00:00
parent 7c6cbbea9e
commit dfe8852e76
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -60,10 +60,8 @@ RUN apk add --no-cache bash libgcc libstdc++ libpq openssl libmagic && \
# Cleanup
RUN rm -rf /var/cache/apk/*
COPY --chown=root:scheduler src/bw/misc/asn.mmdb /var/tmp/bunkerweb/asn.mmdb
COPY --chown=root:scheduler src/bw/misc/country.mmdb /var/tmp/bunkerweb/country.mmdb
RUN chmod 770 /var/tmp/bunkerweb/asn.mmdb /var/tmp/bunkerweb/country.mmdb
COPY --chown=root:scheduler --chmod=770 src/bw/misc/asn.mmdb /var/tmp/bunkerweb/asn.mmdb
COPY --chown=root:scheduler --chmod=770 src/bw/misc/country.mmdb /var/tmp/bunkerweb/country.mmdb
# Fix CVEs
RUN apk add --no-cache "libexpat>=2.6.0-r0"