This repository has been archived on 2026-10-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasonJatham 5c46b47937 chore(repo): move current KarlDNS source to Gitea
Preserve the GitHub history and the newer deployed source from ct_134_karldns. Exclude runtime data, credentials, AppleDouble files and local backup copies. Make Gitea the canonical source for documentation, package metadata and project links.
2026-10-28 08:47:52 +01:00

18 lines
484 B
Docker

FROM python:3.14-alpine
ENV DDNS_DATABASE=/data/ddns.sqlite3
WORKDIR /app
COPY pyproject.toml README.md requirements.txt /app/
COPY karldns /app/karldns
COPY scripts /app/karldns/assets/scripts
RUN pip install --no-cache-dir -r requirements.txt . \
&& addgroup -S karldns \
&& adduser -S -G karldns -h /app karldns \
&& mkdir -p /data \
&& chown -R karldns:karldns /app /data
USER karldns
EXPOSE 8080
CMD ["karldns", "serve", "--host", "0.0.0.0", "--port", "8080"]