slidge: Update to latest version

And fix Dockerfile for changes in build.
This commit is contained in:
Alex Palaistras 2023-03-05 18:40:48 +00:00
parent e99faa5450
commit 03d4fdcc05

View File

@ -3,7 +3,7 @@ FROM docker.io/debian:bullseye-slim AS builder
RUN apt-get update -y && apt-get install -y --no-install-recommends \
ca-certificates git curl python3 python3-pip python3-venv
ARG VERSION=5ccc3320f698231dbd90a48379c5ca18532d115b
ARG VERSION=841cb0856d54e7313f64b00080c7c84227631e55
RUN git clone https://git.sr.ht/~nicoco/slidge /slidge && \
cd /slidge && git reset --hard ${VERSION}
@ -12,7 +12,7 @@ RUN python3 -m venv /venv && python3 -m pip install wheel
RUN curl -fL https://install.python-poetry.org | python3 -
ARG PLUGINS="skype discord"
RUN cd /slidge && poetry export --extras="$PLUGINS" > requirements.txt && \
RUN cd /slidge && poetry export --extras="$PLUGINS" --without-hashes > requirements.txt && \
python3 -m pip install --requirement requirements.txt
RUN cp -R /slidge/slidge /venv/lib/python3.9/site-packages/slidge
@ -36,7 +36,7 @@ ENV PYTHONUNBUFFERED=1
ENV PATH=/venv/bin:$PATH
RUN apt-get update -y && apt-get install -y --no-install-recommends \
ca-certificates python3 libpython3.9 python3-gdbm
ca-certificates python3 libpython3.9 python3-gdbm media-types
RUN addgroup --system --gid 10000 slidge
RUN adduser --system --uid 10000 --ingroup slidge --home /var/lib/slidge slidge