docker-compose/container-build

23 lines
318 B
Text
Raw Normal View History

#!/bin/bash
set -euxo pipefail
build_requirements=(
build-base
libffi-dev
openssl-dev
)
run_requirements=(
libffi
openssl
)
apk --no-cache add \
"${build_requirements[@]}" \
"${run_requirements[@]}"
pip install --no-cache-dir -r /opt/setup/requirements.txt
apk --no-cache del \
"${build_requirements[@]}"