2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

Refactor docker image for devcontainer (#6029)

* Make base image configurable

* Refactor dockerfile

- Place extra packages into extra shell script
- Add pre-build stage where packages are installed, and then cache removed
- Run same script in dev target, but do not remove

* Run docker workflow whenever package requirements change

* Replace devcontainer dockerfile

* Install base packages in devcontainer

* --no-cache-dir
This commit is contained in:
Oliver
2023-12-05 07:05:48 +11:00
committed by GitHub
parent 15f58b965e
commit f96055a33f
6 changed files with 50 additions and 80 deletions

View File

@ -9,12 +9,12 @@ mkdir -p $1/dev/{commandhistory,plugins}
cd $1
# create venv
python3 -m venv dev/venv
. dev/venv/bin/activate
python3 -m venv $1/dev/venv
. $1/dev/venv/bin/activate
# setup InvenTree server
pip install invoke
invoke update --no-frontend
invoke update
invoke setup-dev
invoke frontend-install