From 73ebb55569b29621f31119c5ab6297e686753566 Mon Sep 17 00:00:00 2001 From: Sandip Bhattacharya Date: Wed, 13 Jul 2022 14:18:46 +0200 Subject: [PATCH] Make pipe location random,add wget and curl apk --- Dockerfile | 2 +- entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a1ccd8a..ca18eea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ RUN set -xe \ && apk update \ && apk upgrade \ && apk add --no-cache \ - libcrypto1.1 libssl1.1 moreutils bash \ + libcrypto1.1 libssl1.1 moreutils bash wget curl \ && apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \ imapfilter \ && apk del --progress --purge \ diff --git a/entrypoint.sh b/entrypoint.sh index 065f5c0..e1cc594 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -33,8 +33,8 @@ exec 3>&1 # https://www.linuxjournal.com/content/bash-redirections-using-exec if [[ -n $IMAPFILTER_LOG_DIR ]];then - npipe_stdout=/tmp/stdout-$$.tmp - npipe_stderr=/tmp/stderr-$$.tmp + npipe_stdout=/tmp/imapfilter-stdout-$$-${RANDOM}.tmp + npipe_stderr=/tmp/imapfilter-stderr-$$-${RANDOM}.tmp mknod $npipe_stdout p mknod $npipe_stderr p