feat: support build pip version
This commit is contained in:
parent
54ca3957a9
commit
8541747dee
@ -9,6 +9,7 @@ pipeline:
|
||||
repo: ${DOCKER_REGISTRY}/${CI_REPO_OWNER}/pyload-ng
|
||||
registry: ${DOCKER_REGISTRY}
|
||||
tags: latest
|
||||
build_args: VERSION=dev
|
||||
when:
|
||||
branch: main
|
||||
event:
|
||||
|
15
Dockerfile
15
Dockerfile
@ -1,10 +1,8 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.16
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="aptalca"
|
||||
LABEL build_version="pyload docker version:- ${VERSION} Build-date:- $(date +'%F')"
|
||||
|
||||
ENV HOME="/config"
|
||||
|
||||
@ -14,7 +12,6 @@ RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
build-base \
|
||||
cargo \
|
||||
curl-dev \
|
||||
libffi-dev \
|
||||
libjpeg-turbo-dev \
|
||||
@ -32,16 +29,18 @@ RUN \
|
||||
sqlite \
|
||||
tesseract-ocr && \
|
||||
echo "**** install pyload ****" && \
|
||||
PYLOAD='https://github.com/pyload/pyload/archive/develop.zip#[all]' && \
|
||||
if [[ -n "${VERSION}" && "${VERSION}" != "dev" ]]; then \
|
||||
PYLOAD="pyload-ng[all]==${VERSION}"; \
|
||||
fi && \
|
||||
pip3 install -U pip setuptools wheel && \
|
||||
pip install -U --find-links https://wheel-index.linuxserver.io/alpine-3.16/ \
|
||||
https://github.com/pyload/pyload/archive/develop.zip#[all] && \
|
||||
"${PYLOAD}" && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/tmp/* \
|
||||
${HOME}/.cache \
|
||||
${HOME}/.cargo
|
||||
/tmp/*
|
||||
|
||||
# add local files
|
||||
COPY root/ /
|
||||
|
Loading…
Reference in New Issue
Block a user