2015-04-17 17:25:41 +02:00
|
|
|
FROM ubuntu:14.04
|
|
|
|
MAINTAINER Ascensio System SIA <support@onlyoffice.com>
|
|
|
|
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get -y -q install libreoffice
|
|
|
|
|
|
|
|
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
|
|
|
echo "deb http://static.teamlab.com.s3.amazonaws.com/repo/debian/ squeeze main" >> /etc/apt/sources.list && \
|
|
|
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D9D0BF019CC8AC0D && \
|
2015-06-10 18:02:03 +02:00
|
|
|
echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/3.12.0 main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list && \
|
2015-04-17 17:25:41 +02:00
|
|
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
|
2015-04-18 18:13:42 +02:00
|
|
|
echo "deb http://archive.ubuntu.com/ubuntu precise main universe multiverse" >> /etc/apt/sources.list && \
|
2015-04-17 17:25:41 +02:00
|
|
|
DEBIAN_FRONTEND=noninteractive && \
|
|
|
|
locale-gen en_US.UTF-8 && \
|
2015-04-18 18:13:42 +02:00
|
|
|
apt-get -y update && \
|
|
|
|
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && \
|
|
|
|
apt-get install --force-yes -yq software-properties-common && \
|
|
|
|
add-apt-repository ppa:ubuntu-toolchain-r/test && \
|
|
|
|
apt-get -y update && \
|
2015-06-16 16:58:52 +02:00
|
|
|
apt-get --force-yes -yq install gcc-4.9 onlyoffice-documentserver nano htop && \
|
2015-04-17 17:25:41 +02:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
ADD config /app/onlyoffice/setup/config/
|
|
|
|
ADD run-document-server.sh /app/onlyoffice/run-document-server.sh
|
|
|
|
RUN chmod 755 /app/onlyoffice/*.sh
|
|
|
|
|
|
|
|
VOLUME ["/var/log/onlyoffice"]
|
|
|
|
VOLUME ["/var/www/onlyoffice/Data"]
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
EXPOSE 443
|
|
|
|
|
|
|
|
CMD bash -C '/app/onlyoffice/run-document-server.sh';'bash'
|