Skip to content

Commit d65a439

Browse files
authored
Add JSON addon to docker file (#700)
1 parent 4d0ce40 commit d65a439

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Dockerfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,12 @@ ENV GRAMPSHOME=/root
5858
ENV GRAMPS_DATABASE_PATH=/root/.gramps/grampsdb
5959

6060
# install PostgreSQL addon
61-
RUN wget https://github.com/gramps-project/addons/archive/refs/heads/master.zip \
62-
&& unzip -p master.zip addons-master/gramps$GRAMPS_VERSION/download/PostgreSQL.addon.tgz | \
63-
tar -xvz -C /root/gramps/gramps$GRAMPS_VERSION/plugins \
64-
&& unzip -p master.zip addons-master/gramps$GRAMPS_VERSION/download/SharedPostgreSQL.addon.tgz | \
65-
tar -xvz -C /root/gramps/gramps$GRAMPS_VERSION/plugins \
66-
&& unzip -p master.zip addons-master/gramps$GRAMPS_VERSION/download/FilterRules.addon.tgz | \
67-
tar -xvz -C /root/gramps/gramps$GRAMPS_VERSION/plugins \
68-
&& rm master.zip
61+
RUN wget https://github.com/gramps-project/addons/archive/refs/heads/master.zip && \
62+
for addon in PostgreSQL SharedPostgreSQL FilterRules JSON; do \
63+
unzip -p master.zip addons-master/gramps$GRAMPS_VERSION/download/$addon.addon.tgz | \
64+
tar -xvz -C /root/gramps/gramps$GRAMPS_VERSION/plugins; \
65+
done && \
66+
rm master.zip
6967

7068
# install gunicorn
7169
RUN python3 -m pip install --break-system-packages --no-cache-dir --extra-index-url https://www.piwheels.org/simple \

0 commit comments

Comments
 (0)