-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
32 lines (27 loc) · 861 Bytes
/
Dockerfile
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.9-buster
WORKDIR /build
ADD . /build
RUN apt-get update && apt-get install -y -q --no-install-recommends \
build-essential \
libfontconfig1-dev \
libfreetype6-dev \
$jpeg \
libpng-dev \
$ssl \
libx11-dev \
libxext-dev \
libxrender-dev \
python \
zlib1g-dev \
xfonts-75dpi \
xfonts-base \
&& rm -rf /var/lib/apt/lists/*
# Install wkhtmltopdf https://wkhtmltopdf.org/downloads.html
RUN wget -nv -O /tmp/wkhtmltopdf.deb https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb && \
dpkg -i /tmp/wkhtmltopdf.deb && \
cp /usr/local/bin/wkhtmltopdf /usr/bin/ && \
cp /usr/local/bin/wkhtmltoimage /usr/bin/ && \
rm /tmp/wkhtmltopdf.deb
# Install app requirements
RUN pip install -r /build/requirements.txt
CMD [ "make", "files" ]