-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
66 lines (54 loc) · 2.22 KB
/
Dockerfile
File metadata and controls
66 lines (54 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM technicalguru/php:8.4.16-apache-2.4.65.0
LABEL maintainer="Ralph Schuster <github@ralph-schuster.eu>"
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y --no-install-recommends \
wget \
opendkim \
opendkim-tools \
libopendbx1-mysql \
default-mysql-client \
vim \
rsyslog \
dnsutils \
&& rm -rf /var/lib/apt/lists/*
#ADD etc/php/ /usr/local/etc/php/conf.d/
#ADD etc/conf/ /etc/apache2/conf-enabled/
#ADD etc/mods/ /etc/apache2/mods-enabled/
#ADD etc/sites/ /etc/apache2/sites-enabled/
#ADD src/ /var/www/html/
RUN mkdir /usr/local/mailserver \
&& mkdir /usr/local/mailserver/templates \
&& mkdir /usr/local/mailserver/templates/default \
&& mkdir /etc/opendkim \
&& mkdir /etc/opendkim/keys \
&& rm /etc/opendkim.conf /etc/default/opendkim
ADD src/ /usr/local/mailserver/
ADD etc/ /usr/local/mailserver/templates/
RUN chmod 755 /usr/local/mailserver/*.sh \
&& chown -R www-data:www-data /etc/opendkim \
&& chown -R www-data:www-data /var/www/html
EXPOSE 41001
EXPOSE 80
#CMD ["/usr/local/mailserver/loop.sh"]
CMD ["/usr/local/mailserver/entrypoint.sh"]
RUN echo "OpenDKIM version: $(opendkim -V)"
#####################################################################
# Image OCI labels
#####################################################################
ARG ARG_CREATED
ARG ARG_URL=https://github.com/technicalguru/docker-mailserver-dkim
ARG ARG_SOURCE=https://github.com/technicalguru/docker-mailserver-dkim
ARG ARG_VENDOR=technicalguru
ARG ARG_TITLE=technicalguru/mailserver-dkim
ARG ARG_DESCRIPTION="Provides DKIM signing for Postfix server"
ARG ARG_DOCUMENTATION=https://github.com/technicalguru/docker-mailserver-dkim
ARG ARG_AUTHORS=technicalguru
ARG ARG_LICENSES=GPL-3.0-or-later
LABEL org.opencontainers.image.created=$ARG_CREATED
LABEL org.opencontainers.image.url=$ARG_URL
LABEL org.opencontainers.image.source=$ARG_SOURCE
LABEL org.opencontainers.image.vendor=$ARG_VENDOR
LABEL org.opencontainers.image.title=$ARG_TITLE
LABEL org.opencontainers.image.description=$ARG_DESCRIPTION
LABEL org.opencontainers.image.documentation=$ARG_DOCUMENTATION
LABEL org.opencontainers.image.authors=$ARG_AUTHORS
LABEL org.opencontainers.image.licenses=$ARG_LICENSES