2
0
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:
Oliver Walters
2021-05-12 20:53:50 +10:00
parent 914db9e913
commit 3381c5e257
4 changed files with 39 additions and 27 deletions

View File

@ -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