-
Notifications
You must be signed in to change notification settings - Fork 733
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (35 loc) · 857 Bytes
/
Copy pathDockerfile
File metadata and controls
40 lines (35 loc) · 857 Bytes
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
FROM debian:12.15-slim
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
git \
build-essential \
cmake \
ninja-build \
pkg-config \
libboost-dev \
libboost-regex-dev \
libboost-locale-dev \
libgoogle-glog-dev \
libgtest-dev \
libyaml-cpp-dev \
libleveldb-dev \
libmarisa-dev \
libopencc-dev \
liblua5.4-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /librime
COPY . .
RUN bash install-plugins.sh \
rime/librime-charcode \
hchunhui/librime-lua \
lotem/librime-octagram \
rime/librime-predict
RUN cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DENABLE_LOGGING:BOOL=ON \
-DBUILD_TEST:BOOL=ON \
-DBUILD_STATIC:BOOL=OFF \
-DBUILD_SHARED_LIBS:BOOL=ON
RUN cmake --build build
RUN ctest --test-dir build --output-on-failure