mirror of
https://github.com/openzim/warc2zim.git
synced 2025-10-19 14:33:17 +00:00
26 lines
544 B
Bash
Executable file
26 lines
544 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Custom script to install Python on top of a Docker Node-JS image, then install
|
|
# required Python deps, generate fuzzy rules, and finally bundle JS script
|
|
|
|
apt-get update -y
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
python3 python3-pip python3-venv
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
python3 -m venv /local
|
|
|
|
/local/bin/python -m pip install --no-cache-dir -U \
|
|
pip \
|
|
jinja2==3.1.4 \
|
|
PyYAML==6.0.2
|
|
|
|
/local/bin/python /src/rules/generate_rules.py
|
|
|
|
cd /src/javascript
|
|
|
|
yarn install
|
|
|
|
OUTPUT_DIR=/output yarn build-prod
|