dovecot: improve building scenario
This commit is contained in:
parent
5e1f07ed98
commit
fa8693bf94
@ -1,5 +1,8 @@
|
|||||||
FROM almalinux:9
|
FROM almalinux:9
|
||||||
|
|
||||||
|
ARG DOVECOT_VERSION
|
||||||
|
ARG POSTFIX_VERSION
|
||||||
|
|
||||||
RUN useradd -m -s /bin/false vmail
|
RUN useradd -m -s /bin/false vmail
|
||||||
|
|
||||||
RUN dnf install -y epel-release dnf-plugins-core \
|
RUN dnf install -y epel-release dnf-plugins-core \
|
||||||
@ -8,8 +11,9 @@ RUN dnf install -y epel-release dnf-plugins-core \
|
|||||||
&& dnf clean all \
|
&& dnf clean all \
|
||||||
&& rm -rf /var/cache/yum
|
&& rm -rf /var/cache/yum
|
||||||
|
|
||||||
RUN dnf install -y postfix-3.5.9 postfix-ldap-3.5.9 postfix-mysql-3.5.9 postfix-pgsql-3.5.9 \
|
RUN dnf install -y postfix-${POSTFIX_VERSION} postfix-ldap-${POSTFIX_VERSION} \
|
||||||
dovecot-2.3.16 dovecot-pigeonhole-2.3.16 opendkim-2.11.0 opendmarc-1.4.2 \
|
postfix-mysql-${POSTFIX_VERSION} postfix-pgsql-${POSTFIX_VERSION} \
|
||||||
|
dovecot-${DOVECOT_VERSION} dovecot-pigeonhole-${DOVECOT_VERSION} \
|
||||||
cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 pypolicyd-spf \
|
cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 pypolicyd-spf \
|
||||||
&& dnf clean all \
|
&& dnf clean all \
|
||||||
&& rm -rf /var/cache/yum
|
&& rm -rf /var/cache/yum
|
||||||
|
@ -1,13 +1,19 @@
|
|||||||
VERSION=2.3.16-2
|
VERSION=2.3.16
|
||||||
|
BUILD=3
|
||||||
IMAGE=dovecot
|
IMAGE=dovecot
|
||||||
REGISTRY=gitea.geekhome.org/ghp
|
REGISTRY=gitea.geekhome.org/ghp
|
||||||
|
|
||||||
|
DOVECOT_VERSION=$(VERSION)
|
||||||
|
POSTFIX_VERSION=3.5.9
|
||||||
|
|
||||||
.PHONY: build push all
|
.PHONY: build push all
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker build -t $(REGISTRY)/$(IMAGE):$(VERSION) .
|
docker build --build-arg DOVECOT_VERSION=$(DOVECOT_VERSION) \
|
||||||
|
--build-arg POSTFIX_VERSION=$(POSTFIX_VERSION) \
|
||||||
|
-t $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD) .
|
||||||
|
|
||||||
push:
|
push:
|
||||||
docker push $(REGISTRY)/$(IMAGE):$(VERSION)
|
docker push $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD)
|
||||||
|
|
||||||
all: build push
|
all: build push
|
||||||
|
Loading…
Reference in New Issue
Block a user