tex2pdf_docker/Dockerfile

15 lines
684 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-bin texlive-core texlive-latexextra texlive-fontsrecommended texlive-langenglish texlive-langgerman && \
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"]