-
Notifications
You must be signed in to change notification settings - Fork 0
/
build
executable file
·37 lines (32 loc) · 1.24 KB
/
build
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
35
36
37
#!/bin/bash
set -xe
#-------------------------------------------------------------------------------
# dependencies
#-------------------------------------------------------------------------------
apt-get update
apt-get --yes upgrade
apt-get --yes install \
python \
wget
#-------------------------------------------------------------------------------
# python dependcies
#-------------------------------------------------------------------------------
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install --upgrade pip
pip install -U "celery[redis]"
pip install pyocclient
#-------------------------------------------------------------------------------
# wkhtmltodpf
#-------------------------------------------------------------------------------
wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
apt --yes install ./wkhtmltox_0.12.5-1.bionic_amd64.deb
mkdir /var/data
#-------------------------------------------------------------------------------
# Cleaning
#-------------------------------------------------------------------------------
rm get-pip.py
rm wkhtmltox_0.12.5-1.bionic_amd64.deb
python -m pip uninstall setuptools pip wheel -y
apt-get --yes purge --autoremove wget
apt-get clean