24 lines
747 B
Docker
24 lines
747 B
Docker
# FROM ubuntu:20.04
|
|
FROM tozd/runit:ubuntu-focal
|
|
# build s6 process manager
|
|
# build postfix
|
|
# build postgres
|
|
# build apache
|
|
# build z-push
|
|
# build kopano
|
|
WORKDIR /root
|
|
COPY dist/core-11.0.2.50.507cbae-Ubuntu_20.04-amd64.tar.gz .
|
|
COPY dist/webapp-6.0.0.57.1049268-Ubuntu_20.04-all.tar.gz .
|
|
COPY deploy-kopano.sh .
|
|
RUN ./deploy-kopano.sh
|
|
COPY service /etc/service
|
|
# https://documentation.kopano.io/kopanocore_administrator_manual/configure_kc_components.html#configure-kopano-dagent-for-delivery-via-unix-socket
|
|
# declaration section
|
|
ARG MAIL_DOMAIN=zntrl.de
|
|
EXPOSE 80 443
|
|
EXPOSE 2003
|
|
EXPOSE 993
|
|
EXPOSE 8443
|
|
# create run scripts in etc/service
|
|
# CMD ["/usr/sbin/kopano-server", "-F", "-c", "/etc/kopano/server.cfg"]
|
|
ENTRYPOINT ["init.sh"] |