File size: 1,554 Bytes
adabee1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Danish frontend v4 (AGENTS.md, "Frontend v4"): the v3 kit + DeepPhonemizer + lingua (image
# tiny-voca-dk-g2p:1), then kit-v4/patches/danish-v4.patch on top of danish.patch and the
# packaged NST G2P (kit-v4/resources, made by scripts/g2p_package.py). Same symbol inventory
# as v3, new profile identity (version 4): new annotations, v3 checkpoints branch with
# --init-from --new-data.
FROM tiny-voca-dk-g2p:1
USER root
WORKDIR /opt/kit
COPY kit-v4/patches/danish-v4.patch patches/danish-v4.patch
COPY kit-v4/resources/da_g2p_nst_v1.pt kit-v4/resources/da_g2p_nst_v1.symbols.json tiny-voca/src/tiny_voca/resources/
COPY kit-v4/resources/danish_g2p_data.py tiny-voca/src/tiny_voca/
RUN git -C tiny-voca apply --check /opt/kit/patches/danish-v4.patch \
 && git -C tiny-voca apply /opt/kit/patches/danish-v4.patch
RUN python make_config.py --output config.da.json \
 && python check_environment.py --device cpu > /opt/kit/build_environment.json \
 && cd tiny-voca && (python -m unittest tests.test_danish_v4 tests.test_danish_nst tests.test_danish_frontend \
        tests.test_danish_numbers_v2 > /opt/kit/build_tests_v4.txt 2>&1 || (tail -n 60 /opt/kit/build_tests_v4.txt; exit 1)) \
 && tail -n 3 /opt/kit/build_tests_v4.txt \
 && chmod -R a+rX /opt/kit/patches /opt/kit/tiny-voca /opt/kit/config.da.json /opt/kit/build_environment.json \
        /opt/kit/build_tests_v4.txt
# chmod only what this layer touched: a recursive chmod of /opt/kit copies the 8 GB .venv into a
# new layer while building and ran the models disk out of space on 2026-11-26.