Updated requirements

This commit is contained in:
krateng 2022-03-10 07:11:39 +01:00
parent 34e0b0fd67
commit cc2b984080
6 changed files with 29 additions and 16 deletions

View File

@ -10,7 +10,7 @@ license="GPL-3.0"
depends="python3 tzdata" depends="python3 tzdata"
pkgusers=$pkgname pkgusers=$pkgname
pkggroups=$pkgname pkggroups=$pkgname
depends_dev="gcc python3-dev libxml2-dev libxslt-dev libffi-dev libc-dev py3-pip linux-headers" depends_dev="gcc g++ python3-dev libxml2-dev libxslt-dev libffi-dev libc-dev py3-pip linux-headers"
makedepends="$depends_dev" makedepends="$depends_dev"
source=" source="
$pkgname-$pkgver.tar.gz::https://github.com/krateng/maloja/archive/refs/tags/v$pkgver.tar.gz $pkgname-$pkgver.tar.gz::https://github.com/krateng/maloja/archive/refs/tags/v$pkgver.tar.gz

View File

@ -1,24 +1,33 @@
FROM python:3-alpine FROM alpine:3.15
# Python image includes two Python versions, so use base Alpine
# Based on the work of Jonathan Boeckel <jonathanboeckel1996@gmail.com> # Based on the work of Jonathan Boeckel <jonathanboeckel1996@gmail.com>
# https://gitlab.com/Joniator/docker-maloja
# https://github.com/Joniator
WORKDIR /usr/src/app WORKDIR /usr/src/app
# this should change rarely, can be cached # Install run dependencies first
RUN apk add --no-cache python3 tzdata
# system pip could be removed after build, but apk then decides to also remove all its
# python dependencies, even if they are explicitly installed as python packages
# whut
RUN \
apk add py3-pip && \
pip install wheel
COPY ./requirements.txt ./requirements.txt COPY ./requirements.txt ./requirements.txt
# Install everything before copying rest of the project, can be cached
RUN \ RUN \
apk add --no-cache --virtual .build-deps gcc python3-dev libxml2-dev libxslt-dev libffi-dev libc-dev py3-pip linux-headers && \ apk add --no-cache --virtual .build-deps gcc g++ python3-dev libxml2-dev libxslt-dev libffi-dev libc-dev py3-pip linux-headers && \
apk add --no-cache python3 tzdata && \ pip install --no-cache-dir -r requirements.txt && \
pip3 install --no-cache-dir -r requirements.txt && \
apk del .build-deps apk del .build-deps
# no chance for caching below here
COPY . . COPY . .
RUN pip3 install /usr/src/app
RUN pip install /usr/src/app
# Docker-specific configuration and default to IPv4 # Docker-specific configuration and default to IPv4
ENV MALOJA_SKIP_SETUP=yes ENV MALOJA_SKIP_SETUP=yes

View File

@ -1,4 +1,4 @@
apk add \ apk add \
gcc python3-dev libxml2-dev libxslt-dev libffi-dev libc-dev py3-pip linux-headers \ gcc g++ python3-dev libxml2-dev libxslt-dev libffi-dev libc-dev py3-pip linux-headers \
python3 tzdata \ python3 tzdata \
vips vips

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
apk add \ apk add \
gcc \ gcc \
g++ \
python3-dev \ python3-dev \
libxml2-dev \ libxml2-dev \
libxslt-dev \ libxslt-dev \

View File

@ -21,8 +21,8 @@ classifiers = [
dependencies = [ dependencies = [
"bottle>=0.12.16", "bottle>=0.12.16",
"waitress>=1.3", "waitress>=1.3",
"doreah>=1.7.4, <2", "doreah>=1.7.5, <2",
"nimrodel>=0.7.0", "nimrodel>=0.8.0",
"setproctitle>=1.1.10", "setproctitle>=1.1.10",
#"pyvips>=2.1.16", #"pyvips>=2.1.16",
"jinja2>=2.11", "jinja2>=2.11",
@ -30,7 +30,8 @@ dependencies = [
"css_html_js_minify>=2.5.5", "css_html_js_minify>=2.5.5",
"psutil>=5.8.0", "psutil>=5.8.0",
"sqlalchemy>=1.4", "sqlalchemy>=1.4",
"python-datauri>=1.1.0" "python-datauri>=1.1.0",
"requests>=2.27.1"
] ]
[project.optional-dependencies] [project.optional-dependencies]
@ -51,6 +52,7 @@ name = "maloja"
[tool.osreqs.alpine] [tool.osreqs.alpine]
build =[ build =[
"gcc", "gcc",
"g++",
"python3-dev", "python3-dev",
"libxml2-dev", "libxml2-dev",
"libxslt-dev", "libxslt-dev",

View File

@ -1,7 +1,7 @@
bottle>=0.12.16 bottle>=0.12.16
waitress>=1.3 waitress>=1.3
doreah>=1.7.4, <2 doreah>=1.7.5, <2
nimrodel>=0.7.0 nimrodel>=0.8.0
setproctitle>=1.1.10 setproctitle>=1.1.10
jinja2>=2.11 jinja2>=2.11
lru-dict>=1.1.6 lru-dict>=1.1.6
@ -9,4 +9,5 @@ css_html_js_minify>=2.5.5
psutil>=5.8.0 psutil>=5.8.0
sqlalchemy>=1.4 sqlalchemy>=1.4
python-datauri>=1.1.0 python-datauri>=1.1.0
requests>=2.27.1