This repository has been archived by the owner on Dec 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrew Ferrier
committed
Sep 6, 2020
1 parent
5dbebcb
commit c28c735
Showing
2 changed files
with
7 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,27 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER Andrew Ferrier <[email protected]> | ||
FROM debian | ||
LABEL maintainer="Andrew Ferrier <[email protected]>" | ||
RUN apt-get update && apt-get install -y git build-essential \ | ||
checkinstall \ | ||
fontconfig \ | ||
gdebi-core \ | ||
getmail4 \ | ||
libfontconfig1 \ | ||
libfreetype6 \ | ||
libjpeg-turbo8 \ | ||
libjpeg62-turbo \ | ||
libx11-6 \ | ||
libxext6 \ | ||
libxrender1 \ | ||
python \ | ||
python3-dateutil \ | ||
python3-flake8 \ | ||
python3-pip \ | ||
python3-reportlab \ | ||
wget \ | ||
xfonts-75dpi \ | ||
xfonts-base | ||
WORKDIR /tmp | ||
RUN wget http://mirrors.kernel.org/ubuntu/pool/universe/p/pypdf2/python3-pypdf2_1.23+git20141008-1_all.deb | ||
RUN wget http://mirrors.kernel.org/ubuntu/pool/universe/f/freezegun/python3-freezegun_0.1.18-1_all.deb | ||
RUN fakeroot checkinstall --pkgname=python3-pdfminer3k --pkgversion=0.1 -y --fstrans=no --install=no pip3 install pdfminer3k | ||
RUN wget -O wkhtmltox.deb 'http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-trusty-amd64.deb' | ||
RUN wget -O wkhtmltox.deb 'https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb' | ||
RUN dpkg -i *.deb | ||
RUN wget -O /etc/vim/vimrc.local https://raw.githubusercontent.com/tpope/vim-sensible/master/plugin/sensible.vim | ||
RUN mkdir /etc/vim && wget -O /etc/vim/vimrc.local https://raw.githubusercontent.com/tpope/vim-sensible/master/plugin/sensible.vim | ||
COPY . /tmp/email2pdf/ | ||
COPY docker/email2pdf/getmail /etc/cron.d/ | ||
WORKDIR /tmp/email2pdf | ||
RUN pip3 install -r requirements_hacking.txt | ||
RUN make builddeb_real && sh -c 'ls -1 /tmp/email2pdf/*.deb | xargs -L 1 gdebi -n' && cp /tmp/email2pdf/*.deb /tmp | ||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /var/tmp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters