mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
slidge: Update to latest version
This commit is contained in:
parent
05c77bc234
commit
a35af5950d
@ -1,10 +1,9 @@
|
|||||||
FROM docker.io/debian:bullseye-slim AS builder
|
FROM docker.io/debian:bullseye-slim AS builder
|
||||||
ARG VERSION=397ecf18893db972937e7bff3d66d18ce0d4e4be
|
|
||||||
ARG PLUGINS="skype discord"
|
|
||||||
|
|
||||||
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
||||||
ca-certificates git curl python3 python3-pip python3-venv
|
ca-certificates git curl python3 python3-pip python3-venv
|
||||||
|
|
||||||
|
ARG VERSION=5ccc3320f698231dbd90a48379c5ca18532d115b
|
||||||
RUN git clone https://git.sr.ht/~nicoco/slidge /slidge && \
|
RUN git clone https://git.sr.ht/~nicoco/slidge /slidge && \
|
||||||
cd /slidge && git reset --hard ${VERSION}
|
cd /slidge && git reset --hard ${VERSION}
|
||||||
|
|
||||||
@ -32,14 +31,17 @@ COPY --from=builder /slidge /
|
|||||||
RUN cd /slidge/plugins/whatsapp && gopy build -vm=python3 -output=generated -no-make=true .
|
RUN cd /slidge/plugins/whatsapp && gopy build -vm=python3 -output=generated -no-make=true .
|
||||||
|
|
||||||
FROM docker.io/debian:bullseye-slim
|
FROM docker.io/debian:bullseye-slim
|
||||||
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
ENV PATH=/venv/bin:$PATH
|
||||||
|
|
||||||
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
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
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED=1
|
RUN addgroup --system --gid 10000 slidge
|
||||||
ENV PATH=/venv/bin:$PATH
|
RUN adduser --system --uid 10000 --ingroup slidge --home /var/lib/slidge slidge
|
||||||
|
|
||||||
COPY --from=builder /venv /venv
|
COPY --from=builder /venv /venv
|
||||||
COPY --from=builder-whatsapp /slidge/plugins/whatsapp/generated /venv/lib/python3.9/site-packages/slidge/plugins/whatsapp/generated
|
COPY --from=builder-whatsapp /slidge/plugins/whatsapp/generated /venv/lib/python3.9/site-packages/slidge/plugins/whatsapp/generated
|
||||||
|
|
||||||
|
USER slidge
|
||||||
ENTRYPOINT ["python", "-m", "slidge"]
|
ENTRYPOINT ["python", "-m", "slidge"]
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Slidge Gateway for XMPP (%i)
|
Description=Slidge Gateway for XMPP (%i)
|
||||||
Wants=container-build@%p.service container-volume@%p-%i.service prosody.service prosody-component-register@%p-%i.service
|
Wants=container-build@%p.service container-volume@%p-%i.service prosody.service prosody-component-register@%p-%i.service
|
||||||
After=container-build@%p.service container-volume@%p-%i.service prosody.service prosody-component-register@%p-%i.service
|
After=container-build@%p.service container-volume@%p-%i.service prosody.service
|
||||||
|
Before=prosody-component-register@%p-%i.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
|
Loading…
Reference in New Issue
Block a user