tex2pdf_docker/Dockerfile
2024-01-25 21:40:23 +03:30

15 lines
1015 B
Docker

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