-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (35 loc) · 1.01 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM debian:bullseye AS build
ARG TARGETARCH
ARG TARGETVARIANT
ENV LANG=C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install --yes --no-install-recommends \
build-essential cmake patchelf \
python3 libopenblas-dev
WORKDIR /build
# openFST
COPY openfst/ ./openfst/
COPY script/build_openfst.sh ./script/
RUN bash script/build_openfst.sh
# opengrm
COPY opengrm/ ./opengrm/
COPY script/build_opengrm.sh ./script/
RUN bash script/build_opengrm.sh
# Kaldi
COPY kaldi/ ./kaldi/
COPY script/build_kaldi.sh ./script/
RUN bash script/build_kaldi.sh
# phonetisaurus
COPY phonetisaurus/ ./phonetisaurus/
COPY script/build_phonetisaurus.sh ./script/
RUN bash script/build_phonetisaurus.sh
# Distribution
RUN tar -C local -czf "rhasspy-speech_${TARGETARCH}${TARGETVARIANT}.tar.gz" \
openfst \
opengrm \
phonetisaurus \
kaldi
# -----------------------------------------------------------------------------
FROM scratch
COPY --from=build /build/rhasspy-speech_*.tar.gz ./