Mkvpropedit tries to be locale-aware when reading and writing strings. The bookworm-slim Debian base image comes with no compiled locale, which causes mkvpropedit to error with the following error when the container is ran without clearenv: terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid As a one way of dealing with these issues, we install locales package and configure the container with the en_US.UTF-8 locale. This comes at a cost of about 5 MB added to the size of the image.
13 lines
293 B
Modula-2
13 lines
293 B
Modula-2
Bootstrap: docker
|
|
From: debian:bookworm-slim
|
|
|
|
%environment
|
|
LC_ALL=en_US.UTF-8
|
|
export LC_ALL
|
|
|
|
%post
|
|
apt-get update && apt-get install -y ffmpeg mkvtoolnix python3 locales
|
|
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
|
|
|
%runscript
|
|
exec "$@"
|