Files
md2gost/Dockerfile
T

28 lines
699 B
Docker
Raw Normal View History

2026-07-15 10:45:23 +03:00
FROM python:3.14-slim
COPY --from=ghcr.io/astral-sh/uv:0.9.21 /uv /uvx /bin/
RUN apt-get update && apt-get install -y --no-install-recommends \
texlive-xetex \
texlive-lang-cyrillic \
texlive-latex-extra \
fonts-liberation \
cabextract \
wget \
fontconfig \
2026-07-15 10:45:23 +03:00
&& rm -rf /var/lib/apt/lists/*
RUN cd /tmp && \
wget -q https://downloads.sourceforge.net/corefonts/times32.exe && \
cabextract times32.exe && \
mkdir -p /usr/share/fonts/truetype/msttcorefonts && \
cp -f *.TTF /usr/share/fonts/truetype/msttcorefonts/ && \
fc-cache -f && \
rm -f /tmp/*.TTF /tmp/times32.exe
2026-07-15 10:45:23 +03:00
WORKDIR /app
COPY . .
RUN uv sync --frozen --no-dev
ENTRYPOINT ["uv", "run", "--no-dev", "md2gost"]