15 lines
653 B
Docker
15 lines
653 B
Docker
FROM python:3.13-slim-bookworm
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY homegate.py sync_ssh.py homegate_ui.py dns_challenge.py dns-providers-legacy.json THIRD_PARTY_NOTICES.md bootstrap.py standalone.py VERSION .
|
|
COPY ui/dist ./ui/dist
|
|
ARG VERSION=0.6.0
|
|
LABEL org.opencontainers.image.title="Homegate" \
|
|
org.opencontainers.image.description="LAN DNS, HTTPS and SSH management for Pi-hole and NPM" \
|
|
org.opencontainers.image.version=$VERSION
|
|
RUN mkdir -p /config /data /control && chown 1000:1000 /config /data /control
|
|
USER 1000:1000
|
|
ENTRYPOINT ["python", "/app/homegate.py"]
|
|
CMD ["run"]
|