-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (33 loc) · 1.36 KB
/
Dockerfile
File metadata and controls
35 lines (33 loc) · 1.36 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
FROM alpine:latest
MAINTAINER Florian Fink <finkf@cis.lmu.de>
ENV DATE='Mo 23. Sep 14:43:17 CEST 2019'
ENV PROFILER_BACKEND='/language-data'
ENV GITURL="https://github.com/cisocrgroup"
ENV DEPS='cppunit-dev xerces-c-dev icu-dev'
ENV BUILD_DEPS='clang make build-base cmake git perl'
ENV LANG='C'
ENV MUSL_LOCPATH="/usr/local/share/i18n/locales/musl"
ENV LC_ALL='C'
# # locale
# RUN apk --no-cache add libintl \
# && apk --no-cache --virtual .locale_build add cmake make musl-dev gcc gettext-dev git \
# && git clone https://gitlab.com/rilian-la-te/musl-locales \
# && cd /musl-locales \
# && cmake -DLOCALE_PROFILE=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr . \
# && make && make install \
# && apk del /locale_build
COPY . /build
RUN apk add -U --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ ${DEPS} ${BUILD_DEPS} \
&& cd /build \
&& cmake -DCMAKE_BUILD_TYPE=release .. \-DCMAKE_CXX_COMPILER=clang++ . \
&& make compileFBDic trainFrequencyList profiler \
&& mkdir -p /apps \
&& cp bin/compileFBDic bin/trainFrequencyList bin/profiler /apps/ \
&& git clone ${GITURL}/Resources --branch master --single-branch \
&& cd Resources/lexica \
&& make FBDIC=/apps/compileFBDic TRAIN=/apps/trainFrequencyList \
&& mkdir -p /language-data \
&& cp -r german latin greek german.ini latin.ini greek.ini ${PROFILER_BACKEND} \
&& cd / \
&& rm -rf /build \
&& apk del ${BUILD_DEPS}