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.
2026-05-21 17:23:08 +02:00
|
|
|
FROM python:3.14-alpine
|
2026-05-20 13:48:24 +02:00
|
|
|
|
2026-05-20 23:55:27 +02:00
|
|
|
ENV DDNS_DATABASE=/data/ddns.sqlite3
|
|
|
|
|
|
2026-05-20 13:48:24 +02:00
|
|
|
WORKDIR /app
|
2026-05-21 17:23:08 +02:00
|
|
|
COPY pyproject.toml README.md requirements.txt /app/
|
|
|
|
|
COPY karldns /app/karldns
|
2026-10-28 08:47:52 +01:00
|
|
|
COPY scripts /app/karldns/assets/scripts
|
2026-05-21 17:23:08 +02:00
|
|
|
RUN pip install --no-cache-dir -r requirements.txt . \
|
|
|
|
|
&& addgroup -S karldns \
|
|
|
|
|
&& adduser -S -G karldns -h /app karldns \
|
2026-05-20 18:33:48 +02:00
|
|
|
&& mkdir -p /data \
|
2026-05-20 23:55:27 +02:00
|
|
|
&& chown -R karldns:karldns /app /data
|
|
|
|
|
USER karldns
|
2026-05-20 13:48:24 +02:00
|
|
|
|
|
|
|
|
EXPOSE 8080
|
2026-05-20 23:55:27 +02:00
|
|
|
CMD ["karldns", "serve", "--host", "0.0.0.0", "--port", "8080"]
|