diff options
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/Build | 18 | ||||
| -rw-r--r-- | docker/Dockerfile | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/docker/Build b/docker/Build new file mode 100644 index 0000000..adb90a9 --- /dev/null +++ b/docker/Build @@ -0,0 +1,18 @@ +#!/bin/bash +set -e + +pip3 install --upgrade pip setuptools wheel +pip3 install pillow python-slugify psutil pyinstaller raven pyqt5 +gem install fpm + +cd /app +pyinstaller -F -s kcc.py +mkdir -p dist/usr/bin dist/usr/share/applications dist/usr/share/doc/kindlecomicconverter dist/usr/share/kindlecomicconverter dist/usr/share/lintian/overrides +mv dist/kcc dist/usr/bin +cp icons/comic2ebook.png dist/usr/share/kindlecomicconverter +cp LICENSE.txt dist/usr/share/doc/kindlecomicconverter/copyright +cp other/linux/kindlecomicconverter.desktop dist/usr/share/applications +cp other/linux/kindlecomicconverter dist/usr/share/lintian/overrides + +cd /app/dist +fpm -f -s dir -t deb -n kindlecomicconverter -v $KCCVER -m "Paweł Jastrzębski <[email protected]>" --license "ISC" --description "$(printf "Comic and Manga converter for e-book readers.\nThis app allows you to transform your PNG, JPG, GIF, CBZ, CBR and CB7 files\ninto EPUB or MOBI format e-books.")" --url "https://kcc.iosphe.re/" --deb-priority "optional" --vendor "" --category "graphics" -d "unrar | unrar-free" -d "p7zip-full" -d "libc6" usr diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..5164aff --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,18 @@ +# acidweb/kcc +FROM debian:jessie +MAINTAINER Paweł Jastrzębski <[email protected]> + +ADD ./Build /Build + +RUN printf "deb http://httpredir.debian.org/debian stretch main" > /etc/apt/sources.list.d/stretch.list +RUN printf "Package: *\nPin: release a=testing\nPin-Priority: 400\n" > /etc/apt/preferences.d/stretch.pref +RUN printf "deb http://httpredir.debian.org/debian sid main" > /etc/apt/sources.list.d/sid.list +RUN printf "Package: *\nPin: release a=testing\nPin-Priority: 300\n" > /etc/apt/preferences.d/sid.pref +RUN apt-get update && apt-get -y dist-upgrade +RUN apt-get -y install build-essential curl ruby ruby-dev libpng-dev libjpeg-dev +RUN apt-get -y -t testing install python3 python3-dev +RUN apt-get -y -t unstable install python3-pyqt5 +RUN curl https://bootstrap.pypa.io/get-pip.py | python3 +RUN apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +CMD /Build |