make gpoddeersync version configurable
All checks were successful
repod / nextcloud-25 (push) Successful in 1m14s
repod / nextcloud-27 (push) Successful in 38s
repod / nodejs (push) Successful in 1m44s

This commit is contained in:
Michel Roux 2023-07-01 18:04:21 +02:00
parent fd13c4263c
commit cde91274af

View File

@ -1,9 +1,10 @@
FROM nextcloud FROM nextcloud:27
ENV NEXTCLOUD_UPDATE 1 ENV NEXTCLOUD_UPDATE 1
ENV NEXTCLOUD_ADMIN_USER repod ENV NEXTCLOUD_ADMIN_USER repod
ENV NEXTCLOUD_ADMIN_PASSWORD repod ENV NEXTCLOUD_ADMIN_PASSWORD repod
ENV SQLITE_DATABASE repod ENV SQLITE_DATABASE repod
ARG GPODDERSYNC_VERSION 3.8.1
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \ RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get install -y nodejs && \ apt-get install -y nodejs && \
@ -12,7 +13,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
USER www-data USER www-data
COPY --chown=www-data:www-data . apps/repod COPY --chown=www-data:www-data . apps/repod
RUN curl -sSLo /tmp/gpoddersync.tar.gz https://github.com/thrillfall/nextcloud-gpodder/releases/download/3.8.1/gpoddersync.tar.gz && \ RUN curl -sSLo /tmp/gpoddersync.tar.gz https://github.com/thrillfall/nextcloud-gpodder/releases/download/${GPODDERSYNC_VERSION}/gpoddersync.tar.gz && \
tar xvzf /tmp/gpoddersync.tar.gz -C apps && \ tar xvzf /tmp/gpoddersync.tar.gz -C apps && \
rm /tmp/gpoddersync.tar.gz && \ rm /tmp/gpoddersync.tar.gz && \
cd apps/repod && make build && cd - && \ cd apps/repod && make build && cd - && \