40 lines
1.8 KiB
Docker
40 lines
1.8 KiB
Docker
# syntax=docker.io/docker/dockerfile:1.5.2
|
|
FROM ubuntu:20.04
|
|
RUN <<EOF
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
export TZ=Europe/Berlin
|
|
apt-get update
|
|
apt-get install -y --no-install-recommends tzdata wget gnupg apache2 ca-certificates
|
|
update-ca-certificates
|
|
# install php7-mapi and dependencies
|
|
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 --no-install-recommends
|
|
# install kopano-webapp
|
|
wget --no-verbose -P/tmp http://bldr/webapp-6.0.0.57.1049268-Ubuntu_20.04-all.tar.gz
|
|
tar xzf /tmp/webapp-6.0.0.57.1049268-Ubuntu_20.04-all.tar.gz
|
|
for F in webapp-6.0.0.57.1049268-Ubuntu_20.04-all/*.deb; do dpkg --unpack --no-triggers $F; done
|
|
apt-get install -f -y --no-install-recommends
|
|
apt-get install -y --no-install-recommends libapache2-mod-php7.4
|
|
a2ensite kopano-webapp
|
|
# cleanup
|
|
apt-get autoclean
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache ~/.npm
|
|
rm -rf webapp-6.0.0.57.1049268-Ubuntu_20.04-all
|
|
rm -rf core-11.0.2.50.507cbae-Ubuntu_20.04-amd64
|
|
EOF
|
|
COPY etc-zntrl /root/etc
|
|
# RUN <<EOF
|
|
# sed -i \
|
|
# -e's/define("SECURE_COOKIES", true);/define("SECURE_COOKIES", false);/' \
|
|
# -e's| define("DEFAULT_SERVER", "default:");| define("DEFAULT_SERVER", "http://\$SERVER:236/kopano");|' \
|
|
# -e's|define("LOG_USER_LEVEL", LOGLEVEL_OFF);|define("LOG_USER_LEVEL", LOGLEVEL_INFO);|' \
|
|
# -e's|Europe/Amsterdam|Europe/Berlin|' \
|
|
# /etc/kopano/webapp/config.php
|
|
# EOF
|
|
# use envsubst in entrypoint script to convert config templates to actual config files
|
|
COPY --chmod=0775 webapp/entrypoint.sh /entrypoint.sh
|
|
EXPOSE 80
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
CMD ["apache2", "-DFOREGROUND"] |