summaryrefslogtreecommitdiff
path: root/capsule.Dockerfile
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-04-30 17:20:50 +0100
committerJoe Carstairs <me@joeac.net>2026-04-30 17:20:50 +0100
commit144f3ed14d633e19ce5385df74bf3eddc3f8df9c (patch)
tree9817226b56eb1577483970274191175f8b3dccb4 /capsule.Dockerfile
parent1492a916e983e75594bc7c23ca83cb31859e2642 (diff)
capsule.Dockerfile: uses Makefile
Diffstat (limited to 'capsule.Dockerfile')
-rw-r--r--capsule.Dockerfile12
1 files changed, 5 insertions, 7 deletions
diff --git a/capsule.Dockerfile b/capsule.Dockerfile
index 7bcbc50..b7b7282 100644
--- a/capsule.Dockerfile
+++ b/capsule.Dockerfile
@@ -25,20 +25,18 @@ RUN crontab -l > crontab.tmp \
# bash is needed to run the build scripts
# busybox-openrc provides rc-service, which runs crond
# gcc is a dependency for agate
-RUN apk --no-cache add bash busybox-openrc gcc
+# make is needed to run the Makefile
+RUN apk --no-cache add bash busybox-openrc gcc make
RUN rc-update add crond
COPY --from=agate /root/.cargo/bin/agate /usr/local/bin/agate
COPY --from=comitium /usr/local/bin/comitium /usr/local/bin/comitium
COPY capsule/comitium-data comitium-data
-RUN while read feed; do \
- comitium add --data comitium-data/ "$feed"; \
- done <comitium-data/feeds.txt
+COPY capsule/Makefile Makefile
+RUN make add_feeds
COPY capsule .
COPY common /var/common
-RUN ./build_microlog.bash
-RUN ./build_longlog.bash
-RUN ./build_loglog.bash
+RUN make
CMD \
( ( sleep 5; comitium refresh --data comitium-data/ ) & ) \