added core
This commit is contained in:
@@ -1,34 +1,29 @@
|
||||
# syntax=docker/dockerfile:1.3-labs
|
||||
FROM ubuntu:20.04
|
||||
# install apt packages
|
||||
WORKDIR /root
|
||||
RUN <<EOF
|
||||
apt-get update -y
|
||||
RUN <<EOF
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
export TZ=Europe/Berlin
|
||||
apt-get install -y tzdata wget xz-utils
|
||||
apt-get autoclean
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache ~/.npm
|
||||
EOF
|
||||
# install s6 process manager
|
||||
ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.1.2/s6-overlay-noarch.tar.xz /tmp
|
||||
ADD https://github.com/just-containers/s6-overlay/releases/download/v3.1.1.2/s6-overlay-x86_64.tar.xz /tmp
|
||||
RUN <<EOF
|
||||
tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
|
||||
tar -C / -Jxpf /tmp/s6-overlay-x86_64.tar.xz
|
||||
EOF
|
||||
COPY ./etc/s6-overlay /etc/s6-overlay
|
||||
# install kopano core
|
||||
RUN <<EOF
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends tzdata wget gnupg ca-certificates
|
||||
update-ca-certificates
|
||||
# install core
|
||||
wget --no-verbose -P/tmp http://bldr/core-11.0.2.50.507cbae-Ubuntu_20.04-amd64.tar.gz
|
||||
tar xzf /tmp/core-11.0.2.50.507cbae-Ubuntu_20.04-amd64.tar.gz
|
||||
for F in ~/core-11.0.2.50.507cbae-Ubuntu_20.04-amd64/*.deb; do dpkg --unpack --no-triggers $F; done
|
||||
apt-get install -f -y
|
||||
apt-get clean
|
||||
for F in core-11.0.2.50.507cbae-Ubuntu_20.04-amd64/*.deb; do dpkg --unpack --no-triggers $F; done
|
||||
apt-get install -f -y --no-install-recommends
|
||||
# cleanup
|
||||
apt-get autoclean
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache ~/.npm
|
||||
rm -rf ~/core-11.0.2.50.507cbae-Ubuntu_20.04-amd64
|
||||
rm -rf core-11.0.2.50.507cbae-Ubuntu_20.04-amd64
|
||||
EOF
|
||||
# use envsubst in entrypoint script to convert config templates to actual config files
|
||||
COPY --chmod=0775 entrypoint.sh /entrypoint.sh
|
||||
# https://documentation.kopano.io/kopanocore_administrator_manual/configure_kc_components.html#configure-kopano-dagent-for-delivery-via-unix-socket
|
||||
EXPOSE 110
|
||||
EXPOSE 143
|
||||
EXPOSE 236
|
||||
EXPOSE 8443
|
||||
VOLUME /etc/kopano
|
||||
VOLUME /var/lib/kopano/attachments
|
||||
ENTRYPOINT ["/init"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["/usr/sbin/kopano-server"]
|
||||
|
||||
Reference in New Issue
Block a user