1- FROM ubuntu:14.04
1+ FROM ubuntu:bionic
22
33# ## update
44RUN apt-get -q update
@@ -7,24 +7,14 @@ RUN apt-get -q -y dist-upgrade
77RUN apt-get clean
88RUN apt-get -q update
99
10- RUN apt-get -q -y install openssh-server git autoconf automake make libtool pkg-config cmake apache2 libapache2-mod-fcgid libfcgi0ldbl
11- RUN apt-get -q -y install zlib1g-dev libpng12-dev libjpeg-dev libtiff5-dev libgdk-pixbuf2.0-dev libxml2-dev libsqlite3-dev libcairo2-dev libglib2.0-dev
12- RUN apt-get -q -y install g++ libmemcached-dev libjpeg-turbo8-dev
10+ RUN apt-get -q -y install openssh-server git autoconf automake make libtool pkg-config cmake apache2 libapache2-mod-fcgid libfcgi0ldbl zlib1g-dev libpng-dev libjpeg-dev libtiff5-dev libgdk-pixbuf2.0-dev libxml2-dev libsqlite3-dev libcairo2-dev libglib2.0-dev g++ libmemcached-dev libjpeg-turbo8-dev
1311RUN a2enmod rewrite
1412RUN a2enmod fcgid
1513
16- WORKDIR /images
17- VOLUME ["/images" ]
18-
1914RUN mkdir /root/src
2015COPY . /root/src
2116WORKDIR /root/src
2217
23-
24- # # get our configuration files
25- WORKDIR /root/src
26- # RUN git clone https://tcpan@bitbucket.org/tcpan/iip-openslide-docker.git
27-
2818# # replace apache's default fcgi config with ours.
2919RUN rm /etc/apache2/mods-enabled/fcgid.conf
3020COPY ./fcgid.conf /etc/apache2/mods-enabled/fcgid.conf
@@ -38,9 +28,6 @@ RUN ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/proxy
3828COPY apache2.conf /etc/apache2/apache2.conf
3929COPY ports.conf /etc/apache2/ports.conf
4030
41- # # setup a mount point for images. - this is external to the docker container.
42- RUN mkdir -p /mnt/images
43-
4431
4532WORKDIR /root/src
4633
@@ -69,22 +56,17 @@ RUN make
6956RUN make install
7057
7158# ## iipsrv
72- WORKDIR /root/src
73- RUN git clone https://bitbucket.org/tcpan/iipsrv.git iipsrv
74-
75- # # build iipsrv
7659WORKDIR /root/src/iipsrv
77- RUN git checkout tags/iip-openslide-v0.3.1
7860RUN ./autogen.sh
7961# RUN ./configure --enable-static --enable-shared=no
8062RUN ./configure
8163RUN make
82-
8364# # create a directory for iipsrv's fcgi binary
8465RUN mkdir -p /var/www/localhost/fcgi-bin/
8566RUN cp /root/src/iipsrv/src/iipsrv.fcgi /var/www/localhost/fcgi-bin/
8667
8768# COPY apache2-iipsrv-fcgid.conf /root/src/iip-openslide-docker/apache2-iipsrv-fcgid.conf
8869
8970
90- CMD service apache2 start && while true; do sleep 1000; done
71+ # CMD service apache2 start && while true; do sleep 1000; done
72+ CMD apachectl -D FOREGROUND
0 commit comments