forked from dy2288/nuxeo-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (32 loc) · 1.7 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM debian:jessie
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y software-properties-common
RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list
RUN echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
RUN apt-get update && apt-get install -y oracle-java8-installer \
imagemagick \
ufraw \
poppler-utils \
libreoffice \
libav-tools \
libwpd-tools \
ghostscript \
libimage-exiftool-perl\
mailutils
RUN wget -q -O- http://apt.nuxeo.org/nuxeo.key | apt-key add - OK
RUN add-apt-repository "deb http://apt.nuxeo.org/ $(lsb_release -cs) releases"
RUN add-apt-repository "deb http://apt.nuxeo.org/ $(lsb_release -cs) fasttracks"
RUN echo nuxeo nuxeo/bind-address string 0.0.0.0 | /usr/bin/debconf-set-selections
RUN echo nuxeo nuxeo/http-port string 8080 | /usr/bin/debconf-set-selections
RUN echo nuxeo nuxeo/database select Autoconfigure PostgreSQL | /usr/bin/debconf-set-selections
RUN wget -q http://apt.nuxeo.org/pool/releases/nuxeo_7.10-01_all.deb
# Following 3 lines play the trick to get dependencies of a downloaded .deb package installed automatically
RUN dpkg -i nuxeo_7.10-01_all.deb; exit 0
RUN apt-get update && apt-get install -fy
RUN dpkg -i nuxeo_7.10-01_all.deb
VOLUME ["nuxeo-postgres:/var/lib/postgresql", "nuxeo-conf:/etc/nuxeo/"]
COPY nuxeo-start.sh /root/
RUN chmod 0777 /root/nuxeo-start.sh
CMD ["/root/nuxeo-start.sh"]