forked from UAlbanyArchives/mailbagit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (25 loc) · 1.05 KB
/
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
33
34
FROM python:3.11.2-slim-buster
MAINTAINER Gregory Wiedeman [email protected]
ENV TZ=America/New_York \
DEBIAN_FRONTEND=noninteractive \
MAILBAGIT_LOG_LEVEL=debug\
IN_CONTAINER=true
#RUN mkdir /mailbagit
#WORKDIR /mailbagit
#ADD . /mailbagit/
# manually add to $PYTHONPATH because https://github.com/python/importlib_metadata/issues/364
ENV PYTHONPATH=/mailbagit
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get install -y curl
# needed to build some python libraries
RUN apt-get install -y gcc dpkg-dev
# wkhtmltopdf deps
RUN apt-get install -y xfonts-75dpi xfonts-base
RUN pip install libpff-python==20211114
RUN curl -L -o /tmp/google-chrome-stable_current_amd64.deb \
https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt-get install -y /tmp/google-chrome-stable_current_amd64.deb
RUN curl -L -o /tmp/wkhtmltox_0.12.6-1.buster_amd64.deb \
https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb
RUN dpkg -i /tmp/wkhtmltox_0.12.6-1.buster_amd64.deb