PyBDC-Container / PyBDC_container /PyBDC_definition.def
dhavalkadia-fda's picture
Upload 2 files
26438a8 verified
raw
history blame contribute delete
720 Bytes
BootStrap: docker
From: ubuntu:22.04
%arguments
path_package=""
%files
{{ path_package }} /usr/local/bin/PyBDC
%post
export DEBIAN_FRONTEND=noninteractive
export TZ=America/New_York
# Update package repositories
apt-get -y update
# Install dependencies
apt-get -y install python3.11-tk
apt-get -y install pip
pip install -r /usr/local/bin/PyBDC/requirements.txt
%runscript
# Change the current working directory
cd /usr/local/bin/PyBDC
# To set more appropriate font size for the UI (example, running from container may require UI to have larger font size)
# More details are available in /PyBDC.py
python3 /usr/local/bin/PyBDC/PyBDC.py --font_size_set 2