-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-init.sh
56 lines (44 loc) · 982 Bytes
/
docker-init.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
48
49
50
51
52
53
54
55
56
#!/bin/bash
cd /app
mkdir DATA
# Update and install basic dependencies
apt-get update && apt-get install -y \
bash \
libnss3 \
libx11-xcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxi6 \
libxtst6 \
libfreetype6 \
ca-certificates \
fonts-liberation \
libappindicator3-1 \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libcups2 \
libdbus-1-3 \
libgbm1 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libxss1 \
lsb-release \
xdg-utils \
wget \
python3 \
python3-pip \
xvfb \
--no-install-recommends
# Install Python packages
pip3 install -r requirements.txt
playwright install
echo "Requirements Installed"
nohup gunicorn --bind 0.0.0.0:5000 --log-level=debug wsgi:app >> flasknohup.out 2>&1 &
echo "Flask Application Initialized"
xvfb-run -a -s "-screen 0 1280x1024x24" celery -A tasks worker -l info
echo "Celery Worker Initialized"
echo $PWD