aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 6578db31473446ca05a55d6512e86fa5f1aaac3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.7-stretch

ENV GO_VERSION 1.12.9
ENV GO_TAR go${GO_VERSION}.linux-amd64.tar.gz
ENV GOROOT /usr/local/go
ENV GOPATH /root/go
ENV PATH ${GOPATH}/bin:${GOROOT}/bin:${PATH}

# rmapi
RUN wget https://dl.google.com/go/${GO_TAR} \
    && tar -xf ${GO_TAR} \
    && mv go ${GOROOT} \
    && rm ${GO_TAR} \
    && go get -u github.com/juruen/rmapi

# pdftk & pdfcrop
RUN apt-get update \
    && apt-get install -y \
        pdftk \
        texlive-extra-utils  # contains pdfcrop

RUN pip install \
    bs4 \
    requests \
    PyPDF2 \
    titlecase \
    pdfplumber \
    unidecode

COPY arxiv2remarkable.py ./

ENTRYPOINT ["python", "arxiv2remarkable.py"]