blob: 38db46bcf239a1782a251133737d294864836c80 (
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
33
|
FROM golang:stretch AS rmapi
ENV GOPATH /go
ENV PATH ${GOPATH}/bin:/usr/local/go/bin:$PATH
ENV RMAPIREPO github.com/juruen/rmapi
RUN go get -u ${RMAPIREPO}
FROM python:3.7-slim-stretch
# rmapi
COPY --from=rmapi /go/bin/rmapi /usr/bin/rmapi
# imagemagick, pdftk, ghostscript, pdfcrop
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
libmagickwand-dev \
pdftk \
ghostscript \
texlive-extra-utils # contains pdfcrop
RUN pip install --no-cache-dir paper2remarkable
RUN useradd -u 1000 -m -U user
USER user
ENV USER user
WORKDIR /home/user
ENTRYPOINT ["p2r"]
|