mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Refactor docker CI for speed increases (#6562)
* push to ghcr (#168) * Update docker.yaml * Update docker.yaml * Update docker.yaml * use matrix to build for the plattforms (faster amd pub) * try Buildjet * switch to pyhton 3.9 * Update docker.yaml * path python manually? * bump python to 3.11 * Update Dockerfile * step down vm * cleanup workflow * install docker on mac * and docker compose too * switch back to linux * Docker tests (#175) * push to ghcr (#168) * Update docker.yaml * Update docker.yaml * Update docker.yaml * use matrix to build for the plattforms (faster amd pub) * try Buildjet * switch to pyhton 3.9 * Update docker.yaml * path python manually? * bump python to 3.11 * Update Dockerfile * step down vm * cleanup workflow * install docker on mac * and docker compose too * switch back to linux * switch to uv * fix uv install * reintroduce checks * cleanup diff
This commit is contained in:
		| @@ -9,7 +9,7 @@ | ||||
| # - Runs InvenTree web server under django development server | ||||
| # - Monitors source files for any changes, and live-reloads server | ||||
|  | ||||
| ARG base_image=python:3.10-alpine3.18 | ||||
| ARG base_image=python:3.11-alpine3.18 | ||||
| FROM ${base_image} as inventree_base | ||||
|  | ||||
| # Build arguments for this image | ||||
| @@ -46,6 +46,8 @@ ENV INVENTREE_BACKGROUND_WORKERS="4" | ||||
| ENV INVENTREE_WEB_ADDR=0.0.0.0 | ||||
| ENV INVENTREE_WEB_PORT=8000 | ||||
|  | ||||
| ENV VIRTUAL_ENV=/usr/local | ||||
|  | ||||
| LABEL org.label-schema.schema-version="1.0" \ | ||||
|       org.label-schema.build-date=${DATE} \ | ||||
|       org.label-schema.vendor="inventree" \ | ||||
| @@ -90,7 +92,7 @@ FROM inventree_base as prebuild | ||||
|  | ||||
| ENV PATH=/root/.local/bin:$PATH | ||||
| RUN ./install_build_packages.sh --no-cache --virtual .build-deps && \ | ||||
|     pip install --user -r base_requirements.txt -r requirements.txt --no-cache-dir && \ | ||||
|     pip install --user uv --no-cache-dir && uv pip install -r base_requirements.txt -r requirements.txt --no-cache && \ | ||||
|     apk --purge del .build-deps | ||||
|  | ||||
| # Frontend builder image: | ||||
| @@ -135,7 +137,7 @@ EXPOSE 5173 | ||||
| # Install packages required for building python packages | ||||
| RUN ./install_build_packages.sh | ||||
|  | ||||
| RUN pip install -r base_requirements.txt --no-cache-dir | ||||
| RUN pip install uv --no-cache-dir && uv pip install -r base_requirements.txt --no-cache | ||||
|  | ||||
| # Install nodejs / npm / yarn | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user