File: Dockerfile

package info (click to toggle)
xhtml2pdf 0.2.17%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,412 kB
  • sloc: python: 12,740; makefile: 247; xml: 24
file content (25 lines) | stat: -rw-r--r-- 601 bytes parent folder | download
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
FROM ubuntu:xenial

RUN mkdir code
WORKDIR /code

RUN apt-get update && \
    apt-get install -y imagemagick ghostscript python3

RUN apt-get update && \
    apt-get install -y python3-pip

#RUN apt-get update && \
    #apt-get install -y vim

RUN sed -i 's#<policy domain="coder" rights="none" pattern="PDF" />#<policy domain="coder" rights="read|write" pattern="PDF" />#' /etc/ImageMagick-6/policy.xml

RUN apt-get -y autoremove && \
    apt-get -y clean && \
    rm -rf /var/lib/apt/lists/*

COPY . /code/

RUN python3 -m pip install --no-cache-dir .

CMD [ "python3", "testrender/testrender.py" ]