tex2pdf_docker/Dockerfile

14 lines
845 B
Docker

FROM archlinux:base
RUN pacman -Sy --noconfirm curl reflector && \
reflector --latest 5 --sort rate --save /etc/pacman.d/mirrorlist
RUN sed -i '/\[options\]/a XferCommand = /usr/bin/curl -C - --fail --retry 3 --retry-delay 3 -o %o %u' /etc/pacman.conf
RUN pacman -Syu --noconfirm --needed texlive-basic texlive-bibtexextra texlive-bin texlive-fontsextra texlive-fontsrecommended texlive-formatsextra texlive-games texlive-humanities texlive-langgerman texlive-latex texlive-latexextra texlive-latexrecommended texlive-mathscience texlive-music texlive-pictures texlive-plaingeneric texlive-pstricks texlive-publishers
RUN pacman -Syu --noconfirm --needed python-fastapi uvicorn python-python-multipart
RUN yes | pacman -Scc
WORKDIR /app
COPY main.py .
ENTRYPOINT ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]