Run Postfix in the container build so passwords can be reset etc. Fixes #3599

This commit is contained in:
Dave Page
2018-12-05 14:44:23 +00:00
parent 980d1e0292
commit 55402ec7d9
3 changed files with 5 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ RUN LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 make -C /pgadmin4/docs/en_US -f Makefile
FROM python:3.6-alpine3.7
RUN pip --no-cache-dir install gunicorn
RUN apk add --no-cache postgresql-client postgresql-libs
RUN apk add --no-cache postfix postgresql-client postgresql-libs
WORKDIR /pgadmin4
ENV PYTHONPATH=/pgadmin4

View File

@@ -16,6 +16,9 @@ if [ ! -f /var/lib/pgadmin/pgadmin4.db ]; then
python run_pgadmin.py
fi
# Start Postfix to handle password resets etc.
/usr/sbin/postfix start
# NOTE: currently pgadmin can run only with 1 worker due to sessions implementation
# Using --threads to have multi-threaded single-process worker