2018-01-18 17:43:31 +00:00
|
|
|
FROM ubuntu:16.04
|
2015-04-17 15:16:43 +00:00
|
|
|
|
2016-06-22 09:47:40 +00:00
|
|
|
ARG RELEASE_DATE="2016-06-21"
|
|
|
|
ARG RELEASE_DATE_SIGN=""
|
|
|
|
ARG VERSION="8.9.0.190"
|
|
|
|
ARG SOURCE_REPO_URL="deb http://static.teamlab.com.s3.amazonaws.com/repo/debian squeeze main"
|
2018-01-18 17:43:31 +00:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2016-06-22 09:47:40 +00:00
|
|
|
|
|
|
|
LABEL onlyoffice.community.release-date="${RELEASE_DATE}" \
|
|
|
|
onlyoffice.community.version="${VERSION}" \
|
2017-07-07 12:04:41 +00:00
|
|
|
onlyoffice.community.release-date.sign="${RELEASE_DATE_SIGN}" \
|
|
|
|
maintainer="Ascensio System SIA <support@onlyoffice.com>"
|
2016-06-22 09:47:40 +00:00
|
|
|
|
2018-01-18 17:43:31 +00:00
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
2015-04-17 15:16:43 +00:00
|
|
|
|
2018-01-18 17:43:31 +00:00
|
|
|
RUN apt-get -y update && \
|
|
|
|
apt-get install -yq sudo locales && \
|
|
|
|
echo "${SOURCE_REPO_URL}" >> /etc/apt/sources.list && \
|
2018-03-05 15:51:33 +00:00
|
|
|
echo "deb http://download.mono-project.com/repo/ubuntu stable-xenial main" | tee /etc/apt/sources.list.d/mono-official.list && \
|
2016-12-16 12:47:07 +00:00
|
|
|
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5 && \
|
2015-04-17 15:16:43 +00:00
|
|
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
|
|
|
|
locale-gen en_US.UTF-8 && \
|
2015-05-12 09:03:34 +00:00
|
|
|
apt-get -y update && \
|
2018-01-18 17:43:31 +00:00
|
|
|
apt-get install -yq software-properties-common wget curl cron rsyslog && \
|
2018-01-19 08:23:01 +00:00
|
|
|
wget http://nginx.org/keys/nginx_signing.key && \
|
|
|
|
apt-key add nginx_signing.key && \
|
|
|
|
echo "deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx" >> /etc/apt/sources.list.d/nginx.list && \
|
2018-03-21 14:48:38 +00:00
|
|
|
echo "deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx" >> /etc/apt/sources.list.d/nginx.list && \
|
2018-03-29 15:23:05 +00:00
|
|
|
apt-get install -yq default-jre && \
|
2017-12-21 10:52:57 +00:00
|
|
|
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add - && \
|
2018-01-18 17:43:31 +00:00
|
|
|
apt-get install -yq apt-transport-https && \
|
2018-03-21 14:48:38 +00:00
|
|
|
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-6.x.list && \
|
2017-12-21 10:52:57 +00:00
|
|
|
apt-get update && \
|
2018-01-18 17:43:31 +00:00
|
|
|
apt-get install -yq elasticsearch && \
|
2017-04-14 15:19:25 +00:00
|
|
|
add-apt-repository -y ppa:certbot/certbot && \
|
2017-07-12 14:53:50 +00:00
|
|
|
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && \
|
|
|
|
apt-get install -y nodejs && \
|
2015-05-12 09:03:34 +00:00
|
|
|
apt-get -y update && \
|
2018-01-18 17:43:31 +00:00
|
|
|
apt-get install -yq nginx mono-complete ca-certificates-mono && \
|
2015-05-12 09:03:34 +00:00
|
|
|
echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
2018-03-30 13:25:28 +00:00
|
|
|
apt-get install -yq dumb-init python-certbot-nginx htop nano dnsutils redis-server python3-pip && \
|
2018-03-22 09:23:45 +00:00
|
|
|
apt-get install -yq onlyoffice-communityserver && \
|
2015-04-17 15:16:43 +00:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2017-02-13 14:06:35 +00:00
|
|
|
ADD config /app/onlyoffice/config/
|
|
|
|
ADD assets /app/onlyoffice/assets/
|
2015-04-17 15:16:43 +00:00
|
|
|
ADD run-community-server.sh /app/onlyoffice/run-community-server.sh
|
2016-06-22 09:47:40 +00:00
|
|
|
RUN chmod -R 755 /app/onlyoffice/*.sh
|
2015-04-17 15:16:43 +00:00
|
|
|
|
|
|
|
VOLUME ["/var/log/onlyoffice"]
|
|
|
|
VOLUME ["/var/www/onlyoffice/Data"]
|
|
|
|
VOLUME ["/var/lib/mysql"]
|
|
|
|
|
2016-06-22 09:47:40 +00:00
|
|
|
EXPOSE 80 443 5222 3306 9865 9888 9866 9871 9882 5280
|
|
|
|
|
2017-07-06 16:12:54 +00:00
|
|
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
|
|
|
|
2017-02-07 16:46:34 +00:00
|
|
|
CMD ["/app/onlyoffice/run-community-server.sh"];
|