Skip to content

Commit cd7ea20

Browse files
committed
Dockerfile: Add Python runtime for msgpre/spit
Install python3 and python3-requests in the runtime image so gettext 1.0's spit helper can execute with Ollama. Also set UTF-8 locale environment variables to avoid charset warnings in PO processing.
1 parent 2b432ad commit cd7ea20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3636
ca-certificates \
3737
libunistring5 \
3838
libxml2 \
39+
python3 \
40+
python3-requests \
3941
&& rm -rf /var/lib/apt/lists/*
4042

4143
COPY --from=builder /opt/gettext /opt/gettext
4244

4345
ENV PATH="/opt/gettext/bin:${PATH}"
46+
ENV LANG="C.UTF-8"
47+
ENV LC_ALL="C.UTF-8"
4448

4549
WORKDIR /work
4650

0 commit comments

Comments
 (0)