-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
29 lines (23 loc) · 833 Bytes
/
Dockerfile
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
from debian:bullseye-slim as build
LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.source https://github.com/Pusnow/mecab-ko-msvc
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y &&\
DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
build-essential \
python3-pip \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/apt/
RUN pip3 --no-cache-dir install ninja meson
COPY . /src/
WORKDIR /src
RUN meson setup --prefix=/opt/mecab -Dbuildtype=debugoptimized builddir
RUN meson compile -C builddir
RUN meson install -C builddir
from debian:bullseye-slim
LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.source https://github.com/Pusnow/mecab-ko-msvc
COPY --from=build /opt/mecab /opt/mecab
ENV PATH=/opt/mecab/bin:$PATH
CMD ["mecab"]