mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 01:55:39 +00:00
Improvements to development docker-compose script
- Python packages are installed in a virtual environment within the src dir - This prevents a LONG installation process each time the docker image is rebuilt
This commit is contained in:
@ -19,6 +19,14 @@ else
|
||||
cp $INVENTREE_SRC_DIR/InvenTree/config_template.yaml $INVENTREE_CONFIG_FILE
|
||||
fi
|
||||
|
||||
# Setup a virtual environment
|
||||
python3 -m venv inventree-docker-dev
|
||||
|
||||
source inventree-docker-dev/bin/activate
|
||||
|
||||
echo "Installing required packages..."
|
||||
pip install --no-cache-dir -U -r ${INVENTREE_SRC_DIR}/requirements.txt
|
||||
|
||||
echo "Starting InvenTree server..."
|
||||
|
||||
# Wait for the database to be ready
|
||||
|
Reference in New Issue
Block a user