myvemail/build/Dockerfile.alpine
2024-08-09 12:50:33 +00:00

34 lines
968 B
Text

# syntax = docker/dockerfile:1
FROM alpine:edge
# LABEL about the custom image
LABEL description="MyveMail"
# Env files (differs between distros)
ENV MYVEMAIL_NGINX_USERGROUP=nginx
ENV MYVEMAIL_OPENDKIM_CONF=/etc/opendkim/opendkim.conf
ENV MYVEMAIL_OPENDMARC_CONF=/etc/opendmarc/opendmarc.conf
# Copy required files folders
ADD run/bin /usr/local/bin/
ADD run/docker-entrypoint /docker-entrypoint/
COPY run/installer-alpine.sh /tmp/installer.sh
# Update Ubuntu Software repository and install requisites
RUN printf '%s\n' 'https://dl-cdn.alpinelinux.org/alpine/edge/main/' \
'https://dl-cdn.alpinelinux.org/alpine/edge/community/' >/etc/apk/repositories \
&& apk update \
&& apk upgrade \
&& apk add --no-cache \
bash bash-completion ncurses \
&& /tmp/installer.sh \
&& rm /tmp/installer.sh
# Expose ports
EXPOSE 25
EXPOSE 80
EXPOSE 587
EXPOSE 143 993
# Entrypoint hd-wallet-derive script
CMD ["/docker-entrypoint/entrypoint.sh"]