From d5bd585aaba8de60c06d0f3c369ed45d85c8ed52 Mon Sep 17 00:00:00 2001 From: Mathieu Broillet Date: Tue, 13 Jun 2023 07:34:55 +0200 Subject: [PATCH] use custom python image with requirements installed to speed up build time --- .drone.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index c72219e..17506dc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,14 +4,14 @@ name: build_python_project steps: - name: build - #image: python:alpine - image: python:3.11-bullseye + #image: python:3.11-bullseye + image: git.broillet.ch/mathieu/python3.11-bullseye-buildessential:1.0 # python3.11-bullseye image with build-essential & patchelf (apt) and nuitka(pip) installed commands: - pip install -r requirements.txt - # - apk add build-base patchelf - - apt update -y - - apt install build-essential patchelf -y - - pip install nuitka + # - apk add build-base patchelf # not needed with custom image + # - apt update -y # not needed with custom image + # - apt install build-essential patchelf -y # not needed with custom image + # - pip install nuitka # not needed with custom image - python -m nuitka --onefile run.py --include-data-dir=./resources=resources --output-filename="ProxmoxDeploy${DRONE_TAG##v}" - name: gitea_release image: plugins/gitea-release