update build to noble, python 3.13, and node 20 lts
Some checks failed
Gitea/photolib/pipeline/head There was a failure building this commit

This commit is contained in:
dave 2024-11-09 15:05:26 -05:00
parent 808c92e9b8
commit 4800d4a94e
3 changed files with 10 additions and 7 deletions

View File

@ -7,6 +7,7 @@ styles/dist/
styles/mincss/
testenv/
test_data/
local/
photolib.sublime-project
photolib.sublime-workspace
thumbs/

View File

@ -1,9 +1,9 @@
FROM ubuntu:focal AS frontend
FROM ubuntu:noble AS frontend
RUN apt-get update && \
apt-get install -y wget software-properties-common && \
echo "deb https://deb.nodesource.com/node_16.x focal main" | tee /etc/apt/sources.list.d/nodesource.list && \
wget -q -O- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
echo "deb https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
wget -q -O- https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | apt-key add - && \
apt-get update && \
apt-get install -y nodejs
@ -13,15 +13,15 @@ RUN cd /tmp/code && \
npm install && \
./node_modules/.bin/grunt
FROM ubuntu:focal AS app
FROM ubuntu:noble AS app
RUN apt-get update && \
apt-get install -y wget gnupg && \
wget -qO- http://artifact.scc.net.davepedu.com/repo/apt/extpython/dists/focal/install | bash -x /dev/stdin && \
DEBIAN_FRONTEND=noninteractive apt-get install -y extpython-python3.9 libmagic1 ffmpeg && \
wget -qO- http://artifact.scc.net.davepedu.com/repo/apt/extpython/dists/noble/install | bash -x /dev/stdin && \
DEBIAN_FRONTEND=noninteractive apt-get install -y extpython-python3.13 libmagic1 ffmpeg && \
rm -rf /var/lib/apt/lists/*
ENV PATH=/opt/extpython/3.9/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV PATH=/opt/extpython/3.13/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ADD . /tmp/code/
COPY --from=frontend /tmp/code/styles/dist/style.css /tmp/code/styles/dist/style.css

View File

@ -131,6 +131,8 @@ This would ingest all the files listed in `shas.txt` that aren't already in the
Development
-----------
Photolib is developed against Python 3.13. Other versions may work, but are not tested.
**Env Vars**
`PHOTOCLI_CONFIG_DIR` - override cli config directory location