work around corner case with deletion of temporary files using busybox rm

This commit is contained in:
El RIDO 2021-09-15 19:18:20 +02:00
parent fa2d71bd8a
commit b737f81c4f
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -34,7 +34,7 @@ RUN \
# Ensure nginx logs, even if the config has errors, are written to stderr # Ensure nginx logs, even if the config has errors, are written to stderr
&& ln -s /dev/stderr /var/log/nginx/error.log \ && ln -s /dev/stderr /var/log/nginx/error.log \
# Install PrivateBin # Install PrivateBin
&& export GNUPGHOME="$(mktemp -d)" \ && export GNUPGHOME="$(mktemp -d -p /tmp)" \
&& gpg2 --list-public-keys || /bin/true \ && gpg2 --list-public-keys || /bin/true \
&& wget -qO - https://privatebin.info/key/release.asc | gpg2 --import - \ && wget -qO - https://privatebin.info/key/release.asc | gpg2 --import - \
&& rm -rf /var/www/* \ && rm -rf /var/www/* \
@ -76,7 +76,7 @@ RUN \
&& chown -R ${UID}:${GID} /etc/s6 /run /srv/* /var/lib/nginx /var/www \ && chown -R ${UID}:${GID} /etc/s6 /run /srv/* /var/lib/nginx /var/www \
&& chmod o+rwx /run /var/lib/nginx /var/lib/nginx/tmp \ && chmod o+rwx /run /var/lib/nginx /var/lib/nginx/tmp \
# Clean up # Clean up
&& rm -rf "${GNUPGHOME}" /tmp/* \ && rm -rf /tmp/* \
&& apk del --no-cache gnupg git ${ALPINE_COMPOSER_PACKAGES} && apk del --no-cache gnupg git ${ALPINE_COMPOSER_PACKAGES}
COPY etc/ /etc/ COPY etc/ /etc/