-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathinstall_base_deps.sh
executable file
·47 lines (41 loc) · 1007 Bytes
/
install_base_deps.sh
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
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
set -eo pipefail
echo "Installing dependencies for building:"
echo " nginx ${NGINX_VERSION}"
echo " python ${PYTHON_VERSION}"
echo " gunicorn ${GUNICORN_VERSION}"
echo " supervisor ${SUPERVISOR_VERSION}"
echo " node ${NODE_VERSION}"
echo " npm ${NPM_VERSION}"
echo " yarn ${YARN_VERSION}"
echo ""
apt-get update
apt-get install -y --no-install-recommends \
ca-certificates \
cron \
gcc \
gnupg \
libbz2-dev \
libpcre3-dev \
libexpat1-dev \
libffi-dev \
libsqlite3-dev \
libssl-dev \
locales \
make \
procps \
vim \
wget \
xz-utils \
zlib1g-dev \
# Supervisord doesn't currently support running under python3,
# so we'll install python2.7 just for that if using 3.x for our app.
case ${PYTHON_VERSION} in
3.*)
apt-get install -y --no-install-recommends python2.7
;;
esac
rm -r /etc/cron.*/*
# Install logrotate here so that its cron job still gets installed.
apt-get install -y --no-install-recommends logrotate
rm -r /var/lib/apt/lists/*