mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 02:41:21 +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:
1 parent
15f58b965e
commit
f96055a33f
6 files changed
+50
-80
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user