cqpserver/Dockerfile

51 lines
1.3 KiB
Docker
Raw Normal View History

2020-10-08 21:17:22 +00:00
FROM debian:buster-slim
2020-04-06 07:23:49 +00:00
2020-06-16 12:37:51 +00:00
LABEL authors="Patrick Jentsch <p.jentsch@uni-bielefeld.de>, Stephan Porada <sporada@uni-bielefeld.de>"
2020-04-06 07:23:49 +00:00
2020-06-16 12:37:51 +00:00
2020-06-17 08:13:16 +00:00
ARG CWB_REVISION=1499
2020-06-16 12:37:51 +00:00
ARG CWB_PLATFORM=linux-64
ARG CWB_SITE=standard
2020-04-06 07:23:49 +00:00
ENV LANG=C.UTF-8
2019-10-07 13:53:00 +00:00
2020-06-16 12:37:51 +00:00
2019-10-07 13:53:00 +00:00
EXPOSE 4877
2020-06-16 12:37:51 +00:00
2019-10-07 13:53:00 +00:00
WORKDIR /root
2020-06-16 12:37:51 +00:00
## Install IMS Open Corpus Workbench ##
RUN apt-get update \
&& apt-get install --no-install-recommends --yes \
subversion autoconf bison flex gcc make pkg-config libc6-dev libncurses5 libncurses5-dev libpcre3-dev libglib2.0-0 libglib2.0-dev libreadline7 libreadline-dev \
&& rm -r /var/lib/apt/lists/* \
&& svn checkout "http://svn.code.sf.net/p/cwb/code/cwb/trunk@${CWB_REVISION}" cwb \
2020-06-16 12:37:51 +00:00
&& cd cwb \
&& make clean PLATFORM=${CWB_PLATFORM} SITE=${CWB_SITE} \
&& make depend PLATFORM=${CWB_PLATFORM} SITE=${CWB_SITE} \
&& make all PLATFORM=${CWB_PLATFORM} SITE=${CWB_SITE} \
&& make install PLATFORM=${CWB_PLATFORM} SITE=${CWB_SITE} \
&& make realclean PLATFORM=${CWB_PLATFORM} SITE=${CWB_SITE} \
2020-04-06 07:23:49 +00:00
&& cd .. \
2020-06-16 12:37:51 +00:00
&& rm -r cwb
2019-10-07 13:53:00 +00:00
## Installation: Perl CWB package ##
2020-04-17 14:00:49 +00:00
RUN yes | cpan HTML::Entities \
&& svn checkout "http://svn.code.sf.net/p/cwb/code/perl/trunk/CWB@${CWB_REVISION}" perl-cwb \
2020-04-06 07:23:49 +00:00
&& cd perl-cwb \
&& perl Makefile.PL \
&& make \
&& make test \
&& make install \
&& cd .. \
&& rm -r perl-cwb
2019-10-07 13:53:00 +00:00
2020-06-16 12:37:51 +00:00
COPY docker-entrypoint.sh /usr/local/bin/
2019-11-05 08:29:53 +00:00
2020-06-16 12:37:51 +00:00
ENTRYPOINT ["docker-entrypoint.sh"]