diff options
| author | Clayton Yochum <claytonjy@gmail.com> | 2019-08-30 12:53:23 -0400 |
|---|---|---|
| committer | Clayton Yochum <claytonjy@gmail.com> | 2019-08-30 13:18:58 -0400 |
| commit | 1c9050aab81ee74f2d348105a38083c710b4dc8e (patch) | |
| tree | b6d64b1c51468f878b8c5dc049d115f92b21367a | |
| parent | minor bugfix for springer provider (diff) | |
| download | paper2remarkable-1c9050aab81ee74f2d348105a38083c710b4dc8e.tar.gz paper2remarkable-1c9050aab81ee74f2d348105a38083c710b4dc8e.zip | |
Add working dockerfile with all dependencies.
| -rw-r--r-- | Dockerfile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6578db3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,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"] |
