-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (49 loc) · 1.59 KB
/
Dockerfile
File metadata and controls
56 lines (49 loc) · 1.59 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
FROM postgres:18-alpine AS builder
ENV PGROONGA_VERSION=4.0.5 \
GROONGA_VERSION=16.0.0 \
MECAB_KO_VERSION=0.996-ko-0.9.2 \
MECAB_KO_DIC_VERSION=2.1.1-20180720
RUN apk add --no-cache \
apache-arrow-dev \
build-base \
clang19-dev \
cmake \
gettext-dev \
linux-headers \
llvm19 \
lz4-dev \
msgpack-c-dev \
postgresql-dev \
rapidjson-dev \
ruby \
samurai \
wget \
xsimd-dev \
xxhash-dev \
zlib-dev \
zstd-dev
COPY alpine/build.sh /
RUN chmod +x /build.sh && \
/build.sh ${PGROONGA_VERSION} ${GROONGA_VERSION} ${MECAB_KO_VERSION} ${MECAB_KO_DIC_VERSION}
FROM postgres:18-alpine
LABEL org.opencontainers.image.source=https://github.com/loghub-me/postgres
ENV PGROONGA_VERSION=4.0.5 \
GROONGA_VERSION=16.0.0 \
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
RUN apk add --no-cache \
libarrow \
libgomp \
libxxhash \
msgpack-c \
zlib \
zstd
COPY --from=builder /usr/local/lib/libmecab* /usr/local/lib/
COPY --from=builder /usr/local/lib/libgroonga* /usr/local/lib/
COPY --from=builder /usr/local/lib/groonga /usr/local/lib/groonga
COPY --from=builder /usr/local/lib/postgresql/pgroonga* /usr/local/lib/postgresql/
COPY --from=builder /usr/local/lib/mecab /usr/local/lib/mecab
COPY --from=builder /usr/local/share/postgresql/extension/pgroonga* /usr/local/share/postgresql/extension/
COPY --from=builder /usr/local/bin/mecab* /usr/local/bin/
COPY --from=builder /usr/local/bin/groonga* /usr/local/bin/
COPY --from=builder /usr/local/bin/grn* /usr/local/bin/
COPY --from=builder /usr/local/etc/mecabrc /usr/local/etc/