Ensure Postfix starts in the container, now it runs as non-root by default. Fixes #5076

This commit is contained in:
Dave Page
2020-01-20 10:41:27 +00:00
parent 33cb649f26
commit 23e218f1b5
3 changed files with 6 additions and 3 deletions

View File

@@ -162,11 +162,13 @@ RUN apk add --no-cache --virtual \
postgresql-client \
postgresql-libs \
shadow \
sudo \
libcap && \
pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir gunicorn==19.9.0 && \
apk del --no-cache build-deps
apk del --no-cache build-deps && \
echo "pgadmin ALL = NOPASSWD: /usr/sbin/postfix start" > /etc/sudoers.d/postfix
# We need the v12 libpq, which is only in the 'edge' build of Alpine at present
COPY --from=pg12-builder /usr/local/lib/libpq.so.5.12 /usr/lib/