forked from UAlbanyArchives/mailbagit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.production
29 lines (21 loc) · 923 Bytes
/
Dockerfile.production
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
FROM python:3.11.2-slim-buster
MAINTAINER Gregory Wiedeman gwiedeman@albany.edu
ENV TZ=America/New_York \
DEBIAN_FRONTEND=noninteractive \
MAILBAGIT_LOG_LEVEL=info \
IN_CONTAINER=true
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
RUN pip install mailbagit -U