Docker-DocumentServer/Dockerfile

32 lines
1.2 KiB
Docker
Raw Normal View History

2015-04-17 15:25:41 +00: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 && \
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
DEBIAN_FRONTEND=noninteractive && \
locale-gen en_US.UTF-8 && \
apt-get update && \
apt-get install --force-yes -yq onlyoffice-documentserver && \
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'