spectrum: Use specific protocol plugin versions

This commit is contained in:
Alex Palaistras 2021-11-20 16:40:41 +00:00
parent 3905617c70
commit e4e2fc1239

View File

@ -1,6 +1,8 @@
FROM docker.io/debian:bullseye-slim FROM docker.io/debian:bullseye-slim
ARG VERSION=2.1.0 ARG VERSION=2.1.0
ARG SKYPE_VERSION=29c860170ca18c3f7f15b5ba7723e06ddc760361
ARG DISCORD_VERSION=99bdf6fe0c6169feff9e0e4c7edabb805a4c4042
ENV BUILD_DEPS="curl gnupg apt-transport-https build-essential git libpurple-dev libglib2.0-dev libjson-glib-dev libhttp-parser-dev graphicsmagick-imagemagick-compat" ENV BUILD_DEPS="curl gnupg apt-transport-https build-essential git libpurple-dev libglib2.0-dev libjson-glib-dev libhttp-parser-dev graphicsmagick-imagemagick-compat"
RUN apt-get update -y && \ RUN apt-get update -y && \
@ -13,15 +15,11 @@ RUN echo "deb https://packages.spectrum.im/spectrum2/ bullseye main" > /etc/apt/
apt-get install -y --no-install-recommends spectrum2=1:${VERSION}"*" spectrum2-backend-libpurple=1:${VERSION}"*" apt-get install -y --no-install-recommends spectrum2=1:${VERSION}"*" spectrum2-backend-libpurple=1:${VERSION}"*"
RUN git clone https://github.com/EionRobb/skype4pidgin.git && \ RUN git clone https://github.com/EionRobb/skype4pidgin.git && \
cd skype4pidgin/skypeweb && make && make install && \ cd skype4pidgin/skypeweb && git checkout ${SKYPE_VERSION} && make && make install && \
rm -Rf /skype4pidgin rm -Rf /skype4pidgin
RUN git clone https://github.com/dylex/slack-libpurple.git && \
cd slack-libpurple && make && make install && \
rm -Rf /slack-libpurple
RUN git clone https://github.com/EionRobb/purple-discord.git && \ RUN git clone https://github.com/EionRobb/purple-discord.git && \
cd purple-discord && make && make install && \ cd purple-discord && git checkout ${DISCORD_VERSION} && make && make install && \
rm -Rf /purple-discord rm -Rf /purple-discord
RUN apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false ${BUILD_DEPS} RUN apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false ${BUILD_DEPS}