update base image version to 16.04
This commit is contained in:
parent
f541c97720
commit
89fd259804
13
Dockerfile
13
Dockerfile
@ -1,18 +1,18 @@
|
|||||||
FROM ubuntu:14.04
|
FROM ubuntu:16.04
|
||||||
LABEL maintainer Ascensio System SIA <support@onlyoffice.com>
|
LABEL maintainer Ascensio System SIA <support@onlyoffice.com>
|
||||||
|
|
||||||
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive
|
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
||||||
apt-get -y update && \
|
apt-get -y update && \
|
||||||
apt-get --force-yes -yq install wget apt-transport-https curl && \
|
apt-get -yq install wget apt-transport-https curl locales && \
|
||||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CB2DE8E5 && \
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CB2DE8E5 && \
|
||||||
echo "deb http://archive.ubuntu.com/ubuntu precise main universe multiverse" >> /etc/apt/sources.list && \
|
|
||||||
locale-gen en_US.UTF-8 && \
|
locale-gen en_US.UTF-8 && \
|
||||||
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
|
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
|
||||||
apt-get -y update && \
|
apt-get -y update && \
|
||||||
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && \
|
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections && \
|
||||||
apt-get --force-yes -yq install adduser \
|
apt-get -yq install \
|
||||||
|
adduser \
|
||||||
bomstrip \
|
bomstrip \
|
||||||
fonts-crosextra-carlito \
|
fonts-crosextra-carlito \
|
||||||
fonts-dejavu \
|
fonts-dejavu \
|
||||||
@ -34,6 +34,8 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
|||||||
libxss1 \
|
libxss1 \
|
||||||
libxtst6 \
|
libxtst6 \
|
||||||
nano \
|
nano \
|
||||||
|
net-tools \
|
||||||
|
netcat \
|
||||||
nginx-extras \
|
nginx-extras \
|
||||||
nodejs \
|
nodejs \
|
||||||
postgresql \
|
postgresql \
|
||||||
@ -42,6 +44,7 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
|||||||
rabbitmq-server \
|
rabbitmq-server \
|
||||||
redis-server \
|
redis-server \
|
||||||
software-properties-common \
|
software-properties-common \
|
||||||
|
sudo \
|
||||||
supervisor \
|
supervisor \
|
||||||
ttf-mscorefonts-installer \
|
ttf-mscorefonts-installer \
|
||||||
xvfb \
|
xvfb \
|
||||||
@ -68,7 +71,7 @@ ARG PRODUCT_NAME=onlyoffice-documentserver
|
|||||||
RUN echo "$REPO_URL" | tee /etc/apt/sources.list.d/onlyoffice.list && \
|
RUN echo "$REPO_URL" | tee /etc/apt/sources.list.d/onlyoffice.list && \
|
||||||
apt-get -y update && \
|
apt-get -y update && \
|
||||||
service postgresql start && \
|
service postgresql start && \
|
||||||
apt-get --force-yes -yq install $PRODUCT_NAME && \
|
apt-get --allow-unauthenticated -yq install $PRODUCT_NAME && \
|
||||||
service postgresql stop && \
|
service postgresql stop && \
|
||||||
service supervisor stop && \
|
service supervisor stop && \
|
||||||
chmod 755 /app/onlyoffice/*.sh && \
|
chmod 755 /app/onlyoffice/*.sh && \
|
||||||
|
@ -45,7 +45,7 @@ JSON_EXAMPLE="json -q -f ${ONLYOFFICE_EXAMPLE_CONFIG}"
|
|||||||
|
|
||||||
LOCAL_SERVICES=()
|
LOCAL_SERVICES=()
|
||||||
|
|
||||||
PG_VERSION=9.3
|
PG_VERSION=9.5
|
||||||
PG_NAME=main
|
PG_NAME=main
|
||||||
PGDATA=/var/lib/postgresql/${PG_VERSION}/${PG_NAME}
|
PGDATA=/var/lib/postgresql/${PG_VERSION}/${PG_NAME}
|
||||||
PG_NEW_CLUSTER=false
|
PG_NEW_CLUSTER=false
|
||||||
@ -214,6 +214,9 @@ update_nginx_settings(){
|
|||||||
sed 's,{{SSL_CERTIFICATE_PATH}},'"${SSL_CERTIFICATE_PATH}"',' -i ${NGINX_ONLYOFFICE_CONF}
|
sed 's,{{SSL_CERTIFICATE_PATH}},'"${SSL_CERTIFICATE_PATH}"',' -i ${NGINX_ONLYOFFICE_CONF}
|
||||||
sed 's,{{SSL_KEY_PATH}},'"${SSL_KEY_PATH}"',' -i ${NGINX_ONLYOFFICE_CONF}
|
sed 's,{{SSL_KEY_PATH}},'"${SSL_KEY_PATH}"',' -i ${NGINX_ONLYOFFICE_CONF}
|
||||||
|
|
||||||
|
# turn on http2
|
||||||
|
sed 's,\(443 ssl\),\1 http2,' -i ${NGINX_ONLYOFFICE_CONF}
|
||||||
|
|
||||||
# if dhparam path is valid, add to the config, otherwise remove the option
|
# if dhparam path is valid, add to the config, otherwise remove the option
|
||||||
if [ -r "${SSL_DHPARAM_PATH}" ]; then
|
if [ -r "${SSL_DHPARAM_PATH}" ]; then
|
||||||
sed 's,\(\#* *\)\?\(ssl_dhparam \).*\(;\)$,'"\2${SSL_DHPARAM_PATH}\3"',' -i ${NGINX_ONLYOFFICE_CONF}
|
sed 's,\(\#* *\)\?\(ssl_dhparam \).*\(;\)$,'"\2${SSL_DHPARAM_PATH}\3"',' -i ${NGINX_ONLYOFFICE_CONF}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user