forked from ausgerechnet/cwb-ccc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
64 lines (57 loc) · 1.19 KB
/
Dockerfile
File metadata and controls
64 lines (57 loc) · 1.19 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM ubuntu:20.04
##########################
# INSTALL OS DEPENDENCIES
##########################
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install --no-install-recommends -y \
apt-utils \
autoconf \
bison \
flex \
gcc \
libc6-dev \
libglib2.0-0 \
libglib2.0-dev \
libncurses5 \
libncurses5-dev \
libpcre3-dev \
libreadline8 \
libreadline-dev \
make \
pkg-config \
subversion \
git \
python3 \
python3-dev \
python3-pip \
python3-setuptools \
cython3 \
wget \
tar \
gzip \
less \
mg
#####################
# INSTALL LATEST CWB
#####################
RUN svn co http://svn.code.sf.net/p/cwb/code/cwb/trunk /cwb
WORKDIR /cwb
RUN sed -i 's/SITE=beta-install/SITE=standard/' config.mk && \
./install-scripts/install-linux && \
ldconfig
##############################
# INSTALL PYTHON DEPENDENCIES
##############################
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install -q pipenv
WORKDIR /cwb-ccc
COPY . /cwb-ccc
###############
# BUILD & TEST
###############
RUN make clean
RUN make install
RUN make compile
RUN make build
RUN make test