forked from xhtml2pdf/xhtml2pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (18 loc) · 678 Bytes
/
Dockerfile
File metadata and controls
28 lines (18 loc) · 678 Bytes
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
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
COPY requirements.txt /code/
RUN python3 -m pip install --no-cache-dir -r requirements.txt
RUN apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/*
COPY . /code/
RUN python3 setup.py install
CMD [ "python3", "testrender/testrender.py" ]