Remove curl from nginx base image (#10477)

This commit is contained in:
Ricardo Katz 2023-10-04 16:48:34 -03:00 committed by GitHub
parent 8ce61bdc67
commit 8bd33d29e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,10 @@ RUN apk update \
for dir in "${writeDirs[@]}"; do \
mkdir -p ${dir}; \
chown -R www-data.www-data ${dir}; \
done'
done' \
# Why we do this? Because apk package of the library requests curl and we dont want curl
&& mv /usr/lib/libmaxminddb.so.* /usr/local/lib/ \
&& apk del --purge libmaxminddb curl
EXPOSE 80 443