mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Run Postfix in the container build so passwords can be reset etc. Fixes #3599
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user