FROM debian:bookworm-slim

RUN apt-get update && \
    apt-get install -y nut nut-client nut-server && \
    apt-get clean && rm -rf /var/lib/apt/lists/*

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

EXPOSE 3493
ENTRYPOINT ["/entrypoint.sh"]
