mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-06 06:25:40 +08:00
Fix: Remove python pre-installation as SASL building fails in that case
This commit is contained in:
parent
92f514b647
commit
3b2d8db991
1 changed files with 1 additions and 13 deletions
|
@ -34,8 +34,6 @@ do_alpine() {
|
||||||
musl-utils \
|
musl-utils \
|
||||||
netcat-openbsd \
|
netcat-openbsd \
|
||||||
opendkim-utils \
|
opendkim-utils \
|
||||||
python3 \
|
|
||||||
py3-pip \
|
|
||||||
rsyslog \
|
rsyslog \
|
||||||
supervisor \
|
supervisor \
|
||||||
tzdata
|
tzdata
|
||||||
|
@ -82,15 +80,12 @@ do_ubuntu() {
|
||||||
opendkim-tools \
|
opendkim-tools \
|
||||||
postfix-lmdb \
|
postfix-lmdb \
|
||||||
procps \
|
procps \
|
||||||
python3 \
|
|
||||||
python3-pip \
|
|
||||||
rsyslog \
|
rsyslog \
|
||||||
sasl2-bin \
|
sasl2-bin \
|
||||||
supervisor \
|
supervisor \
|
||||||
tzdata
|
tzdata
|
||||||
apt-get clean
|
apt-get clean
|
||||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -f /etc/alpine-release ]; then
|
if [ -f /etc/alpine-release ]; then
|
||||||
|
@ -99,13 +94,6 @@ else
|
||||||
do_ubuntu
|
do_ubuntu
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# masl is needed for the sasl-xoauth2-tool.
|
|
||||||
PIP=pip
|
|
||||||
if command -v pip3 > /dev/null 2>&1; then
|
|
||||||
PIP=pip3
|
|
||||||
fi
|
|
||||||
$PIP install --break-system-packages msal
|
|
||||||
|
|
||||||
# Some services (eg. cron) will complain if this file does not exists, even if it's empty.
|
# Some services (eg. cron) will complain if this file does not exists, even if it's empty.
|
||||||
# The file is usually generated by update-locales, which is ran automatically when you do
|
# The file is usually generated by update-locales, which is ran automatically when you do
|
||||||
# `apt-get install locales`. So instead of adding another package, which at the moment we
|
# `apt-get install locales`. So instead of adding another package, which at the moment we
|
||||||
|
|
Loading…
Add table
Reference in a new issue