cqpserver/Dockerfile

53 lines
1.3 KiB
Docker
Raw Permalink 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
2021-11-16 14:50:44 +00:00
LABEL authors="Patrick Jentsch <p.jentsch@uni-bielefeld.de>"
2020-04-06 07:23:49 +00:00
2020-06-16 12:37:51 +00:00
2021-11-16 14:50:44 +00:00
ARG CWB_REVISION=1674
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 \
&& 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} \
2021-03-26 09:32:18 +00:00
&& cd - > /dev/null \
2020-06-16 12:37:51 +00:00
&& rm -r cwb
2019-10-07 13:53:00 +00:00
2021-03-26 09:32:18 +00:00
## Install 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 \
2021-03-26 09:32:18 +00:00
&& cd - > /dev/null \
2020-04-06 07:23:49 +00:00
&& 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
2021-03-26 09:32:18 +00:00
RUN rm -r /var/lib/apt/lists/*
ENTRYPOINT ["docker-entrypoint.sh"]