X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/aca6edb838d8f31fc1c72eb06891845eb9e28828..5152065ea5fa0b99555ac3e29b8a13e23ed5083c:/Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f4aee2c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,36 @@ +FROM python:3.8 + +ARG UID=1000 +ARG GID=1000 + +RUN apt-get update && apt-get install -y \ + git \ + calibre \ + texlive-xetex texlive-lang-polish + + +RUN addgroup --gid $GID app +RUN adduser --gid $GID --home /app --uid $UID app + +RUN apt-get install -y \ + texlive-extra-utils \ + texlive-lang-greek \ + texlive-lang-other \ + texlive-luatex \ + texlive-fonts-extra \ + texlive-fonts-extra-links \ + fonts-noto-core fonts-noto-extra + + + +COPY dist/librarian.tar.gz / + +USER app + +# fonts +COPY src/librarian/fonts /app/.fonts +RUN fc-cache + +RUN pip install -i https://py.mdrn.pl/simple /librarian.tar.gz + +