summaryrefslogtreecommitdiff
path: root/atom
diff options
context:
space:
mode:
authorBill <bill@billserver.senders.io>2021-03-09 13:37:02 -0500
committerBill <bill@billserver.senders.io>2021-03-09 13:37:02 -0500
commitc7f16a184684c377b194b802346850e090d202c7 (patch)
tree3692696e7c8c1730c51f99a7408ee853b9031986 /atom
Setup initial server
Diffstat (limited to 'atom')
-rw-r--r--atom/Dockerfile12
-rwxr-xr-xatom/docker-entrypoint.sh10
2 files changed, 22 insertions, 0 deletions
diff --git a/atom/Dockerfile b/atom/Dockerfile
new file mode 100644
index 0000000..d29c97d
--- /dev/null
+++ b/atom/Dockerfile
@@ -0,0 +1,12 @@
+FROM python:latest
+
+COPY gemfeed/gemfeed.py /
+COPY gemfeed/setup.py /
+COPY docker-entrypoint.sh /
+
+RUN python -m pip install -e .
+
+VOLUME /feed
+VOLUME /gemini
+
+CMD /docker-entrypoint.sh
diff --git a/atom/docker-entrypoint.sh b/atom/docker-entrypoint.sh
new file mode 100755
index 0000000..5e53cc3
--- /dev/null
+++ b/atom/docker-entrypoint.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env sh
+set -ex
+python gemfeed.py \
+ -b gemini://senders.io \
+ -d /gemini/ \
+ -o /feed/atom.xml \
+ -e stephen+gemini@senders.io \
+ -a senders \
+ -t "Senders' Capsule"
+